diff --git a/addon.xml b/addon.xml index 011cd80..54cc863 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -31,7 +31,9 @@ - hinzufügen von favoriten repariert. 1.2.4: - Neue Sender Hinzugefügt. -- Abspielen von livestreams mit Python3 repariert. +- Abspielen von livestreams mit Python3 repariert. +1.2.5: +- Livestream Abschnitt behoben, wenn ein Stream kein Epg hat. resources/icon.png resources/fanart.png diff --git a/changelog.txt b/changelog.txt index 7e5aab7..9503d57 100644 --- a/changelog.txt +++ b/changelog.txt @@ -42,4 +42,6 @@ v1.2.3: - fixed adding favourites v1.2.4: - add new channels. -- fix playback of livestreams with python3. \ No newline at end of file +- fix playback of livestreams with python3. +v1.2.5: +- fix livestream category, if a stream has no epg. \ No newline at end of file diff --git a/resources/lib/plugin.py b/resources/lib/plugin.py index cf20f83..4b1228a 100644 --- a/resources/lib/plugin.py +++ b/resources/lib/plugin.py @@ -963,11 +963,14 @@ def get_listitem(name="", icon="", fanart="", channel={}, no_puls4=True): else: listitem.setArt({'icon':images["icon_1"], 'thumb':images["icon_1"], 'poster':images["icon_1"]}) if "next_program" in channel: - #'Title': channel["name"] - listitem.setInfo(type='Video', infoLabels={'Title': listitem.getLabel(), 'Plot': channel["next_program"]["name"]+'[CR]'+(channel["next_program"]["description"] if channel["next_program"]["description"] != None else ""), 'mediatype': 'video'}) - program_images = json.loads(channel["next_program"]["images_json"]) - if program_images: - listitem.setArt({'fanart' : program_images["image_base"]}) + if channel["next_program"] != None: + #'Title': channel["name"] + listitem.setInfo(type='Video', infoLabels={'Title': listitem.getLabel(), 'Plot': channel["next_program"]["name"]+'[CR]'+(channel["next_program"]["description"] if channel["next_program"]["description"] != None else ""), 'mediatype': 'video'}) + program_images = json.loads(channel["next_program"]["images_json"]) + if program_images: + listitem.setArt({'fanart' : program_images["image_base"]}) + else: + listitem.setInfo(type='Video', infoLabels={'Title': listitem.getLabel(), 'mediatype': 'video'}) else: listitem = ListItem(name) listitem.setProperty('IsPlayable', 'true')