fix dirette mediasetplay

This commit is contained in:
mac12m99
2021-03-31 20:34:13 +02:00
parent 3efb36878f
commit 36ae7ea078
+1 -1
View File
@@ -127,7 +127,7 @@ def liveDict():
json = current_session.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-stations?sort=ShortTitle').json()['entries'] json = current_session.get('https://feed.entertainment.tv.theplatform.eu/f/PR1GhC/mediaset-prod-all-stations?sort=ShortTitle').json()['entries']
for it in json: for it in json:
urls = [] urls = []
if it['tuningInstruction'] and not it['mediasetstation$digitalOnly']: if it.get('tuningInstruction') and not it.get('mediasetstation$digitalOnly'):
guide=current_session.get('https://static3.mediasetplay.mediaset.it/apigw/nownext/' + it['callSign'] + '.json').json()['response'] guide=current_session.get('https://static3.mediasetplay.mediaset.it/apigw/nownext/' + it['callSign'] + '.json').json()['response']
# if 'restartUrl' in guide['currentListing']: # if 'restartUrl' in guide['currentListing']:
# urls = [guide['currentListing']['restartUrl']] # urls = [guide['currentListing']['restartUrl']]