- Ricritto Mediaset Play

- Ordine Canali Live
This commit is contained in:
Alhaziel01
2021-07-28 17:46:15 +02:00
parent 4838be5705
commit fef622860c
5 changed files with 317 additions and 289 deletions

View File

@@ -35,7 +35,9 @@ def mainlist(item):
def liveDict():
livedict = {}
for key in session.get(api + '/cms/routes/home?decorators=viewingHistory&include=default', headers=headers).json()['included']:
for key in session.get(api + '/cms/routes/canali?decorators=viewingHistory&include=default', headers=headers).json()['included']:
if key['type'] == 'channel' and key.get('attributes',{}).get('hasLiveStream', '') and 'Free' in key.get('attributes',{}).get('packages', []):
title = key['attributes']['name']
livedict[title] = {}