Closed rokam closed 3 years ago
Here is a sample json that cames from the graphql query at globosat.
{'mediaId': '4166185', 'mutedMediaId': '8425710', 'promotionalMediaId': '', 'promotionalText': ' ', 'geofencing': False, 'geoblocked': False, 'imageOnAir': 'https://s02.video.glbimg.com/x1080/4166185.jpg', 'assets': {'thumbUrl': 'https://live-thumbs.video.globo.com/maisgsat24ha/snapshot/', 'previewUrl': 'https://live.video.globo.com/d/preview/maisgsat24ha.mp4', 'teaserUrl': 'https://live.video.globo.com/d/teaser/maisgsat24ha.mp4'}, 'categories': [{'name': 'Filmes e Séries', 'position': 2}], 'channel': {'id': '1981', 'color': '#e2ab47', 'name': 'Mais na Tela', 'text': 'Mais na Tela', 'logo': 'https://s2.glbimg.com/9BDzHD414H8t0SuFUOTky7aAKYI=/285x285/https://s2.glbimg.com/0EMW8aOQIoNx5ViGEg_9X8AhFmc=/filters:fill(transparent,false)/https://i.s3.glbimg.com/v1/AUTH_d2470d85104948f09eee09d5028bee11/internal_photos/bs/2020/h/J/z8oSj1QCGvV7yLwBE5lQ/mais-na-tela.png', 'trimmedLogo': 'https://s2.glbimg.com/FQHw65f26r8jLLebO8xtu76SUoo=/fit-in/112x56/https://s2.glbimg.com/WxwuNrvyW2KxzFeLPkmVKrQV6Ek=/trim/filters:fill(transparent,false)/https://i.s3.glbimg.com/v1/AUTH_d2470d85104948f09eee09d5028bee11/internal_photos/bs/2020/h/J/z8oSj1QCGvV7yLwBE5lQ/mais-na-tela.png', 'slug': 'mais-na-tela', 'requireUserTeam': False}, 'epgCurrentSlots': [{'composite': False, 'name': 'Eclipse', 'titleId': 'JbCJ6yVBjp', 'metadata': 'Confronto', 'description': 'Em Eclipse, Anne-Sophie continua assombrada pela morte do filho. Bernard vai pela segunda vez a Montreal confrontar sua esposa, e descobre que ela está dividindo apartamento com um grupo de jovens.', 'tags': None, 'startTime': 1626983274, 'endTime': 1626985854, 'liveBroadcast': False, 'durationInMinutes': 43, 'contentRating': '14', 'contentRatingCriteria': ['Atos Criminosos', 'Linguagem Imprópria'], 'title': {'titleId': 'JbCJ6yVBjp', 'originProgramId': None, 'releaseYear': None, 'cover': None, 'poster': None, 'countries': None, 'directorsNames': None, 'castNames': None, 'genresNames': None, 'authorsNames': None, 'screenwritersNames': None, 'artDirectorsNames': None}}, {'composite': False, 'name': 'Destino Certo', 'titleId': 'xRNk7mCfHt', 'metadata': 'Turismo Religioso', 'description': 'No país em que 90% das população se diz católica, as igrejas se destacam como verdadeiros templos religiosos. Neste episódio, Mel Fronckowiak vai conferir o turismo religioso onde Fátima e Braga têm lugar garantido. \r\n\r\n', 'tags': None, 'startTime': 1626985855, 'endTime': 1626987968, 'liveBroadcast': False, 'durationInMinutes': 35, 'contentRating': 'L', 'contentRatingCriteria': ['Não Há Inadequações'], 'title': {'titleId': 'xRNk7mCfHt', 'originProgramId': '8976', 'releaseYear': None, 'cover': {'landscape': 'https://s2.glbimg.com/n0Mhzk4ubPeQJIwqzi9w_ZeK6eo=/0x1080/https://s2.glbimg.com/H-VwjYBnRWmzcpI0bZdZBPnjPr8=/i.s3.glbimg.com/v1/AUTH_d2470d85104948f09eee09d5028bee11/internal_photos/bs/2020/2/g/xK4lXiTdaHWy3cnf3Wlw/8976-background.jpg'}, 'poster': {'web': 'https://s2.glbimg.com/0R8QFrH4Y4ZXPBFf6YceiU-IO38=/362x536/https://s2.glbimg.com/osU699NN8Nup1SShKuPBcGcxfaY=/i.s3.glbimg.com/v1/AUTH_d2470d85104948f09eee09d5028bee11/internal_photos/bs/2020/G/N/AQaqcLSQy5GVTZAoADMQ/8976-poster.jpg'}, 'countries': [], 'directorsNames': [], 'castNames': [], 'genresNames': ['Viagem'], 'authorsNames': [], 'screenwritersNames': [], 'artDirectorsNames': []}}], 'media': {'serviceId': 6766, 'availableFor': 'SUBSCRIBER', 'headline': 'Mais na Tela 24 horas'}}
Sometimes the cast attribute comes as None and the live channel list doesn't appears.