lint query and headers

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
dove 2024-12-13 06:31:57 -03:00 committed by GitHub
parent 93e715c81e
commit 4d90834d09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,13 +62,16 @@ class GloboIE(InfoExtractor):
info = self._download_json(
'https://cloud-jarvis.globo.com/graphql', video_id,
query={'operationName': 'getVideoView',
'variables': f'{{"videoId":{video_id}}}',
'query': self._VIDEO_VIEW},
headers={'content-type': 'application/json',
'x-platform-id': 'web',
'x-device-id': 'desktop',
'x-client-version': '2024.12-5'})['data']['video']
query={
'operationName': 'getVideoView',
'variables': f'{{"videoId":{video_id}}}',
'query': self._VIDEO_VIEW,
}, headers={
'content-type': 'application/json',
'x-platform-id': 'web',
'x-device-id': 'desktop',
'x-client-version': '2024.12-5',
})['data']['video']
formats = []
video = self._download_json(