Skip to content

Commit 0c4178c

Browse files
authored
Merge pull request #1936 from oliv3r/npo_epg
Added: Add genre, description, subtitle to NOS IPTV EPG
2 parents ef2bfe1 + eb631bf commit 0c4178c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

channels/channel.nos/nos2010/chn_nos2010.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,14 @@ def create_iptv_epg(self, parameter_parser):
13921392
if len(JsonHelper.get_from(item, "images")) > 0:
13931393
iptv_epg_item["image"] = JsonHelper.get_from(item, "images")[0].get("url")
13941394

1395+
genres = item.get("genres") or []
1396+
if genres:
1397+
iptv_epg_item["genre"] = genres[0].get("name", "")
1398+
if item.get("synopsis"):
1399+
iptv_epg_item["description"] = item["synopsis"]
1400+
if item.get("episodeTitle"):
1401+
iptv_epg_item["subtitle"] = item["episodeTitle"]
1402+
13951403
if media_item is not None:
13961404
iptv_epg_item["stream"] = parameter_parser.create_action_url(
13971405
self, action=action.PLAY_VIDEO, item=media_item, store_id=parent.guid)

0 commit comments

Comments
 (0)