Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed path for get_stream_url so label is applied with Playlist.Add #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions addon.py
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