- Fix Aggiunta alla libreria Mediaset Play
- Icone canali Live
This commit is contained in:
@@ -96,7 +96,7 @@ def live(item):
|
|||||||
urls=urls,
|
urls=urls,
|
||||||
plot=plot,
|
plot=plot,
|
||||||
action='play'))
|
action='play'))
|
||||||
return itemlist
|
return support.thumb(itemlist, live=True)
|
||||||
|
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
support.log()
|
support.log()
|
||||||
@@ -152,7 +152,7 @@ def epmenu(item):
|
|||||||
itemlist.append(
|
itemlist.append(
|
||||||
item.clone(action='episodios',
|
item.clone(action='episodios',
|
||||||
title=support.typo(entry['description'], 'bold'),
|
title=support.typo(entry['description'], 'bold'),
|
||||||
subBrandId=entry['mediasetprogram$subBrandId']))
|
url=entry['mediasetprogram$subBrandId']))
|
||||||
if len(itemlist) == 1: return episodios(itemlist[0])
|
if len(itemlist) == 1: return episodios(itemlist[0])
|
||||||
return itemlist
|
return itemlist
|
||||||
|
|
||||||
@@ -162,15 +162,8 @@ def episodios(item):
|
|||||||
support.log()
|
support.log()
|
||||||
itemlist = []
|
itemlist = []
|
||||||
episode = ''
|
episode = ''
|
||||||
# entries = current_session.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-brands?byCustomValue={brandId}{' + item.urls + '}').json()['entries']
|
|
||||||
|
|
||||||
# for entry in entries:
|
json = current_session.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs?byCustomValue={subBrandId}{' + item.url + '}').json()['entries']
|
||||||
# support.log(entry)
|
|
||||||
# if 'mediasetprogram$subBrandId' in entry and entry['description'].lower() not in ['Prossimi appuntamenti tv', 'clip']:
|
|
||||||
# subBrandId = entry['mediasetprogram$subBrandId']
|
|
||||||
# break
|
|
||||||
|
|
||||||
json = current_session.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-programs?byCustomValue={subBrandId}{' + item.subBrandId + '}').json()['entries']
|
|
||||||
for it in json:
|
for it in json:
|
||||||
urls = []
|
urls = []
|
||||||
if 'media' in it:
|
if 'media' in it:
|
||||||
|
|||||||
+1
-1
@@ -170,7 +170,7 @@ def live(item):
|
|||||||
itemlist.append(item.clone(title = support.typo(channel, 'bold'), fulltitle = channel, show = channel, url = key['video']['contentUrl'],
|
itemlist.append(item.clone(title = support.typo(channel, 'bold'), fulltitle = channel, show = channel, url = key['video']['contentUrl'],
|
||||||
thumbnail = key['transparent-icon'].replace("[RESOLUTION]", "256x-"), forcethumb = True , fanart = info[channel]['fanart'],
|
thumbnail = key['transparent-icon'].replace("[RESOLUTION]", "256x-"), forcethumb = True , fanart = info[channel]['fanart'],
|
||||||
plot = info[channel]['plot'], action = 'play'))
|
plot = info[channel]['plot'], action = 'play'))
|
||||||
return itemlist
|
return support.thumb(itemlist, live=True)
|
||||||
|
|
||||||
|
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
|
|||||||
+9
-1
@@ -277,7 +277,15 @@ def auto_filter(auto_lang=False):
|
|||||||
return lang
|
return lang
|
||||||
|
|
||||||
|
|
||||||
def thumb(item_or_itemlist=None, genre=False, thumb=''):
|
def thumb(item_or_itemlist=None, genre=False, live=False, thumb=''):
|
||||||
|
if live:
|
||||||
|
if type(item_or_itemlist) == list:
|
||||||
|
for item in item_or_itemlist:
|
||||||
|
item.thumbnail = "https://raw.githubusercontent.com/kodiondemand/media/master/live/" + item.fulltitle.lower().replace(' ','_') + '.png'
|
||||||
|
else:
|
||||||
|
item_or_itemlist.thumbnail = "https://raw.githubusercontent.com/kodiondemand/media/master/live/" + item.fulltitle.lower().replace(' ','_') + '.png'
|
||||||
|
return item_or_itemlist
|
||||||
|
|
||||||
import re
|
import re
|
||||||
icon_dict = {'movie':['film', 'movie'],
|
icon_dict = {'movie':['film', 'movie'],
|
||||||
'tvshow':['serie','tv','episodi','episodio','fiction', 'show'],
|
'tvshow':['serie','tv','episodi','episodio','fiction', 'show'],
|
||||||
|
|||||||
Reference in New Issue
Block a user