mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-11-23 12:46:34 +01:00
[ie/Bigo] Fix JSON extraction (#8893)
Closes #8852 Authored by: DmitryScaletta
This commit is contained in:
parent
9f40cd2896
commit
85a2d07c1f
@ -29,7 +29,8 @@ class BigoIE(InfoExtractor):
|
|||||||
|
|
||||||
info_raw = self._download_json(
|
info_raw = self._download_json(
|
||||||
'https://ta.bigo.tv/official_website/studio/getInternalStudioInfo',
|
'https://ta.bigo.tv/official_website/studio/getInternalStudioInfo',
|
||||||
user_id, data=urlencode_postdata({'siteId': user_id}))
|
user_id, data=urlencode_postdata({'siteId': user_id}),
|
||||||
|
headers={'Accept': 'application/json'})
|
||||||
|
|
||||||
if not isinstance(info_raw, dict):
|
if not isinstance(info_raw, dict):
|
||||||
raise ExtractorError('Received invalid JSON data')
|
raise ExtractorError('Received invalid JSON data')
|
||||||
|
Loading…
Reference in New Issue
Block a user