aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLesmiscore (Naoya Ozaki) <nao20010128@gmail.com>2022-07-09 18:30:34 +0900
committerGitHub <noreply@github.com>2022-07-09 15:00:34 +0530
commit1275aeb95559e22dc8b404e91d316b1fa6072804 (patch)
tree4b57397d9744e3eeaf0ab23d60e616a684f10ba5
parent170a0313863d1148f1fb84612aec0780093aeb77 (diff)
downloadhypervideo-pre-1275aeb95559e22dc8b404e91d316b1fa6072804.tar.lz
hypervideo-pre-1275aeb95559e22dc8b404e91d316b1fa6072804.tar.xz
hypervideo-pre-1275aeb95559e22dc8b404e91d316b1fa6072804.zip
[extractor/bigo] Fix extractor (#4312)
Closes #4139 Authored by: Lesmiscore
-rw-r--r--yt_dlp/extractor/bigo.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/yt_dlp/extractor/bigo.py b/yt_dlp/extractor/bigo.py
index f39e15002..1cb6e58be 100644
--- a/yt_dlp/extractor/bigo.py
+++ b/yt_dlp/extractor/bigo.py
@@ -28,7 +28,7 @@ class BigoIE(InfoExtractor):
user_id = self._match_id(url)
info_raw = self._download_json(
- 'https://bigo.tv/studio/getInternalStudioInfo',
+ 'https://ta.bigo.tv/official_website/studio/getInternalStudioInfo',
user_id, data=urlencode_postdata({'siteId': user_id}))
if not isinstance(info_raw, dict):
@@ -41,14 +41,14 @@ class BigoIE(InfoExtractor):
if not info.get('alive'):
raise ExtractorError('This user is offline.', expected=True)
+ formats, subs = self._extract_m3u8_formats_and_subtitles(
+ info.get('hls_src'), user_id, 'mp4', 'm3u8')
+
return {
'id': info.get('roomId') or user_id,
'title': info.get('roomTopic') or info.get('nick_name') or user_id,
- 'formats': [{
- 'url': info.get('hls_src'),
- 'ext': 'mp4',
- 'protocol': 'm3u8',
- }],
+ 'formats': formats,
+ 'subtitles': subs,
'thumbnail': info.get('snapshot'),
'uploader': info.get('nick_name'),
'uploader_id': user_id,