Fix Mediaset Play
This commit is contained in:
+18
-18
@@ -174,27 +174,27 @@ def peliculas(item):
|
|||||||
for it in json:
|
for it in json:
|
||||||
if item.search.lower() in it['title'].lower() and it['title'] not in titlelist:
|
if item.search.lower() in it['title'].lower() and it['title'] not in titlelist:
|
||||||
titlelist.append(it['title'])
|
titlelist.append(it['title'])
|
||||||
if item.contentType == 'movie':
|
# if item.contentType == 'movie':
|
||||||
|
# action = 'findvideos'
|
||||||
|
# urls = []
|
||||||
|
# if 'media' not in it: it = subBrand(it['mediasetprogram$brandId'])[-1]
|
||||||
|
# if 'media' in it:
|
||||||
|
# for key in it['media']:
|
||||||
|
# urls.append(key['publicUrl'])
|
||||||
|
# elif item.contentType == 'tvshow':
|
||||||
|
# action = 'epmenu'
|
||||||
|
# urls = it['mediasetprogram$brandId']
|
||||||
|
# else:
|
||||||
|
if 'media' in it:
|
||||||
action = 'findvideos'
|
action = 'findvideos'
|
||||||
|
contentType = 'movie'
|
||||||
urls = []
|
urls = []
|
||||||
if 'media' not in it: it = subBrand(it['mediasetprogram$brandId'])[-1]
|
for key in it['media']:
|
||||||
if 'media' in it:
|
urls.append(key['publicUrl'])
|
||||||
for key in it['media']:
|
|
||||||
urls.append(key['publicUrl'])
|
|
||||||
elif item.contentType == 'tvshow':
|
|
||||||
action = 'epmenu'
|
|
||||||
urls = it['mediasetprogram$brandId']
|
|
||||||
else:
|
else:
|
||||||
if 'media' in it:
|
action = 'epmenu'
|
||||||
action = 'findvideos'
|
contentType = 'tvshow'
|
||||||
contentType = 'movie'
|
urls = it['mediasetprogram$brandId']
|
||||||
urls = []
|
|
||||||
for key in it['media']:
|
|
||||||
urls.append(key['publicUrl'])
|
|
||||||
else:
|
|
||||||
action = 'epmenu'
|
|
||||||
contentType = 'tvshow'
|
|
||||||
urls = it['mediasetprogram$brandId']
|
|
||||||
if urls:
|
if urls:
|
||||||
title = it['mediasetprogram$brandTitle'] + ' - ' if 'mediasetprogram$brandTitle' in it and it['mediasetprogram$brandTitle'] != it['title'] else ''
|
title = it['mediasetprogram$brandTitle'] + ' - ' if 'mediasetprogram$brandTitle' in it and it['mediasetprogram$brandTitle'] != it['title'] else ''
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
|
|||||||
Reference in New Issue
Block a user