Skip to content

Commit

Permalink
v1.2.5:
Browse files Browse the repository at this point in the history
- fix livestream category, if a stream has no epg.
  • Loading branch information
fayer3 committed Dec 29, 2019
1 parent 47a781a commit 362e59e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
6 changes: 4 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.zappntv" name="Zappn TV" version="1.2.4" provider-name="fayer3">
<addon id="plugin.video.zappntv" name="Zappn TV" version="1.2.5" provider-name="fayer3">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="script.module.routing" version="0.2.0"/>
Expand Down Expand Up @@ -31,7 +31,9 @@
- hinzufügen von favoriten repariert.
1.2.4:
- Neue Sender Hinzugefügt.
- Abspielen von livestreams mit Python3 repariert.</news>
- Abspielen von livestreams mit Python3 repariert.
1.2.5:
- Livestream Abschnitt behoben, wenn ein Stream kein Epg hat.</news>
<assets>
<icon>resources/icon.png</icon>
<fanart>resources/fanart.png</fanart>
Expand Down
4 changes: 3 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ v1.2.3:
- fixed adding favourites
v1.2.4:
- add new channels.
- fix playback of livestreams with python3.
- fix playback of livestreams with python3.
v1.2.5:
- fix livestream category, if a stream has no epg.
13 changes: 8 additions & 5 deletions resources/lib/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 362e59e

Please sign in to comment.