mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
lint query and headers
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
This commit is contained in:
parent
93e715c81e
commit
4d90834d09
1 changed files with 10 additions and 7 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue