Skip to content

Commit

Permalink
[ie/Bigo] Fix JSON extraction (yt-dlp#8893)
Browse files Browse the repository at this point in the history
Closes yt-dlp#8852
Authored by: DmitryScaletta
  • Loading branch information
DmitryScaletta authored and aalsuwaidi committed Apr 21, 2024
1 parent 882dcaa commit 9e74153
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt_dlp/extractor/bigo.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def _real_extract(self, url):

info_raw = self._download_json(
'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):
raise ExtractorError('Received invalid JSON data')
Expand Down

0 comments on commit 9e74153

Please sign in to comment.