Skip to content

Commit bdae18a

Browse files
committed
Also set station name on the resolved final item
1 parent 965abbf commit bdae18a

1 file changed

Lines changed: 10 additions & 11 deletions

File tree

resources/lib/plugin.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -520,17 +520,16 @@ def get_stream_url(station_id):
520520
current_track = station['current_track']
521521
if station:
522522
__log('get_stream_url result: %s' % stream_url)
523-
return plugin.set_resolved_url(
524-
listitem.ListItem(
525-
label=station['name'],
526-
label2=current_track,
527-
path=stream_url,
528-
icon=station['thumbnail'],
529-
thumbnail=station['thumbnail'],
530-
fanart=__get_plugin_fanart(),
531-
offscreen=True
532-
)
533-
)
523+
resolved_listitem = listitem.ListItem(
524+
label=station['name'],
525+
label2=current_track,
526+
path=stream_url,
527+
icon=station['thumbnail'],
528+
thumbnail=station['thumbnail'],
529+
fanart=__get_plugin_fanart(),
530+
offscreen=True)
531+
resolved_listitem.set_property('StationName', station['name'])
532+
return plugin.set_resolved_url(resolved_listitem)
534533

535534

536535
def __add_stations(stations, add_custom=False, browse_more=None):

0 commit comments

Comments
 (0)