lint query and headers

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
pull/11795/head
dove 3 months ago committed by GitHub
parent 93e715c81e
commit 4d90834d09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save