mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-02 15:12:45 +00:00
Compare commits
2 Commits
3763d0d4ab
...
5026548d65
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5026548d65 | ||
|
|
e15ca65874 |
@ -1,5 +1,5 @@
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import ExtractorError, urlencode_postdata
|
from ..utils import ExtractorError, UserNotLive, urlencode_postdata
|
||||||
|
|
||||||
|
|
||||||
class BigoIE(InfoExtractor):
|
class BigoIE(InfoExtractor):
|
||||||
@ -40,7 +40,7 @@ class BigoIE(InfoExtractor):
|
|||||||
info = info_raw.get('data') or {}
|
info = info_raw.get('data') or {}
|
||||||
|
|
||||||
if not info.get('alive'):
|
if not info.get('alive'):
|
||||||
raise ExtractorError('This user is offline.', expected=True)
|
raise UserNotLive(video_id=user_id)
|
||||||
|
|
||||||
formats, subs = self._extract_m3u8_formats_and_subtitles(
|
formats, subs = self._extract_m3u8_formats_and_subtitles(
|
||||||
info.get('hls_src'), user_id, 'mp4', 'm3u8')
|
info.get('hls_src'), user_id, 'mp4', 'm3u8')
|
||||||
|
|||||||
@ -680,6 +680,10 @@ class TwitchPlaylistBaseIE(TwitchBaseIE):
|
|||||||
}],
|
}],
|
||||||
f'Downloading {self._NODE_KIND}s GraphQL page {page_num}',
|
f'Downloading {self._NODE_KIND}s GraphQL page {page_num}',
|
||||||
fatal=False)
|
fatal=False)
|
||||||
|
# Avoid extracting random/unrelated entries when channel_name doesn't exist
|
||||||
|
# See https://github.com/yt-dlp/yt-dlp/issues/15450
|
||||||
|
if traverse_obj(page, (0, 'data', 'user', 'id', {str})) == '':
|
||||||
|
raise ExtractorError(f'Channel "{channel_name}" not found', expected=True)
|
||||||
if not page:
|
if not page:
|
||||||
break
|
break
|
||||||
edges = try_get(
|
edges = try_get(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user