From 36ae7ea07861468ae44f2e8bb2c643f87bfd0c73 Mon Sep 17 00:00:00 2001 From: mac12m99 <10120390+mac12m99@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:34:13 +0200 Subject: [PATCH] fix dirette mediasetplay --- channels/mediasetplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/mediasetplay.py b/channels/mediasetplay.py index d93b43a8..42352c35 100644 --- a/channels/mediasetplay.py +++ b/channels/mediasetplay.py @@ -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'] for it in json: 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'] # if 'restartUrl' in guide['currentListing']: # urls = [guide['currentListing']['restartUrl']]