Fix Dirette Raiplay e traduzioni

This commit is contained in:
Alhaziel01
2021-02-11 18:56:26 +01:00
parent 59041eed4d
commit 24fa4dd0d2
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -162,8 +162,8 @@ def Type(item):
def liveDict():
livedict = OrderedDict({})
info = {}
url = host + '/dl/RaiPlay/2016/PublishingBlock-9a2ff311-fcf0-4539-8f8f-c4fee2a71d58.html?json'
json = current_session.get(url).json()['dirette']
url = host + '/dirette.json'
json = current_session.get(url).json()['contents']
onAir = current_session.get(onair).json()['on_air']
for key in onAir:
channel = key['channel']
@@ -173,7 +173,7 @@ def liveDict():
for key in json:
channel = key['channel']
livedict[channel] = {}
livedict[channel]['url'] = key['video']['contentUrl']
livedict[channel]['url'] = key['video']['content_url']
livedict[channel]['plot'] = info[channel]['plot']
livedict[channel]['fanart'] = info[channel]['fanart']