Fix e migliorie per finestra server pop-up

This commit is contained in:
Alhaziel01
2021-12-02 18:30:59 +01:00
parent a2bd4e464d
commit 05e6e5dea8
9 changed files with 59 additions and 54 deletions
+7 -7
View File
@@ -95,7 +95,7 @@ def live(item):
urls=guide['tuningInstruction']['urn:theplatform:tv:location:any'],
plot=plot,
url=url,
action='play',
action='findvideos',
thumbnail=thumb,
forcethumb=True))
@@ -141,7 +141,7 @@ def peliculas(item):
else:
contentType = 'movie'
video_id = it['guid']
action = 'play'
action = 'findvideos'
for k, v in it['thumbnails'].items():
if 'image_vertical' in k and not thumb:
thumb = v['url'].replace('.jpg', '@3.jpg')
@@ -228,13 +228,13 @@ def episodios(item):
thumbnail=thumb,
forcethumb=True,
contentType='episode',
action='play',
action='findvideos',
video_id=it['guid']))
return itemlist
def play(item):
def findvideos(item):
logger.debug()
item.no_return=True
# support.dbg()
@@ -262,7 +262,7 @@ def play(item):
else:
item.manifest = 'hls'
return[item]
return support.server(item, itemlist=[item], Download=False, Videolibrary=False)
elif item.video_id:
payload = '{"contentId":"' + item.video_id + ' ","streamType":"VOD","delivery":"Streaming","createDevice":true}'
@@ -288,7 +288,7 @@ def play(item):
else:
item.manifest = 'hls'
return [item]
return support.server(item, itemlist=[item], Download=False, Videolibrary=False)
def get_from_id(item):
@@ -320,7 +320,7 @@ def get_programs(item):
args['sid'] = sid
args['sessionId'] = sid
args['hitsPerPage'] = pagination
args['property'] = 'search' if args.get('query') else 'play'
args['property'] = 'search' if args.get('query') else 'findvideos'
args['tenant'] = 'play-prod-v2'
args['page'] = pag
args['deviceId'] = '017ac511182d008322c989f3aac803083002507b00bd0'