Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ def show_stations_by_category(category_type, category):
return __add_stations(stations)


@plugin.route('/station/<station_id>')
def get_stream_url(station_id):
@plugin.route('/station/<station_id>/<station_name>')
def get_stream_url(station_id, station_name):
if my_stations.get(station_id, {}).get('is_custom', False):
stream_url = my_stations[station_id]['stream_url']
else:
Expand Down Expand Up @@ -225,6 +225,7 @@ def __add_stations(stations, add_custom=False):
'path': plugin.url_for(
'get_stream_url',
station_id=station_id,
station_name=station.get('name', '').encode('utf-8'),
),
'is_playable': True,
})
Expand Down