Fix dirette mediaset
This commit is contained in:
@@ -82,11 +82,11 @@ def live(item):
|
|||||||
if it['callSign'] in allguide:
|
if it['callSign'] in allguide:
|
||||||
|
|
||||||
guide = allguide[it['callSign']]
|
guide = allguide[it['callSign']]
|
||||||
plot = '[B]{}[/B]\n{}\n\nA Seguire:\n[B]{}[/B]\n{}'.format(guide['currentListing']['mediasetlisting$epgTitle'],
|
plot = '[B]{}[/B]\n{}'.format(guide.get('currentListing', {}).get('mediasetlisting$epgTitle', ''),
|
||||||
guide['currentListing']['description'],
|
guide.get('currentListing', {}).get('description', ''))
|
||||||
guide['nextListing']['mediasetlisting$epgTitle'],
|
if 'nextListing' in guide.keys():
|
||||||
guide['nextListing']['description'],)
|
plot += '\n\nA Seguire:\n[B]{}[/B]\n{}'.format(guide.get('nextListing', {}).get('mediasetlisting$epgTitle', ''),
|
||||||
|
guide.get('nextListing', {}).get('description', ''))
|
||||||
itemlist.append(item.clone(title=support.typo(title, 'bold'), fulltitle=title, callSign=it['callSign'], urls=guide['tuningInstruction']['urn:theplatform:tv:location:any'], plot=plot, url=url, action='play', forcethumb=True))
|
itemlist.append(item.clone(title=support.typo(title, 'bold'), fulltitle=title, callSign=it['callSign'], urls=guide['tuningInstruction']['urn:theplatform:tv:location:any'], plot=plot, url=url, action='play', forcethumb=True))
|
||||||
|
|
||||||
itemlist.sort(key=lambda it: support.channels_order.get(it.fulltitle, 999))
|
itemlist.sort(key=lambda it: support.channels_order.get(it.fulltitle, 999))
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ def live(item):
|
|||||||
# make itemlist
|
# make itemlist
|
||||||
for ch in channel_list:
|
for ch in channel_list:
|
||||||
itemlist += channels_dict[ch]
|
itemlist += channels_dict[ch]
|
||||||
itemlist.sort(key=lambda it: support.channels_order[it.fulltitle])
|
itemlist.sort(key=lambda it: support.channels_order.get(it.fulltitle, 1000))
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user