Skip to content

Commit c5d5888

Browse files
committed
Fix custom radio tracks
1 parent 1c3ab13 commit c5d5888

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

addon.xml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<addon id="plugin.audio.radio_de" name="Radio" provider-name="Tristan Fischer, enen92" version="2.4.0">
1+
<addon id="plugin.audio.radio_de" name="Radio" provider-name="Tristan Fischer, enen92" version="2.4.1">
22
<requires>
33
<import addon="xbmc.python" version="2.14.0" />
44
<import addon="script.module.xbmcswift2" version="2.5.0" />
@@ -12,13 +12,8 @@
1212
<source>https://github.com/XBMC-Addons/plugin.audio.radio_de</source>
1313
<forum>https://forum.kodi.tv/showthread.php?tid=119362</forum>
1414
<license>GPL-2.0-only</license>
15-
<news>v2.4.0 (29/12/2019)
16-
[new] Use radio API v2
17-
[fix] Remove dead code
18-
[new] Add radio.pt
19-
[new] Page listings
20-
[new] Better quality logos
21-
[new] Hide fanart setting
15+
<news>v2.4.1 (31/12/2019)
16+
[fix] Custom radio tracks
2217
</news>
2318
<summary lang="be">Access &gt;7000 radio broadcasts</summary>
2419
<summary lang="ca">accedeix a mes de 7000 emissores de radio</summary>

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v2.4.1 (31/12/2019)
2+
- [fix] Custom radio tracks
3+
14
v2.4.0 (29/12/2019)
25
- [new] Use radio API v2
36
- [fix] Remove dead code

resources/lib/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,14 +437,16 @@ def get_stream_url(station_id):
437437
if my_stations.get(station_id, {}).get('is_custom', False):
438438
station = my_stations[station_id]
439439
stream_url = station['stream_url']
440+
current_track = ''
440441
else:
441442
station = radio_api.get_station_by_station_id(station_id)
442443
stream_url = station['stream_url']
444+
current_track = station['current_track']
443445
__log('get_stream_url result: %s' % stream_url)
444446
return plugin.set_resolved_url(
445447
listitem.ListItem(
446448
label=station['name'],
447-
label2=station['current_track'],
449+
label2=current_track,
448450
path=stream_url,
449451
icon=station['thumbnail'],
450452
thumbnail=station['thumbnail'],

0 commit comments

Comments
 (0)