1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 16:45:17 +00:00

[CBS] Add fallback (#579)

Related: https://github.com/ytdl-org/youtube-dl/issues/29564
Authored-by: llacb47, pukkandan
This commit is contained in:
LE
2021-08-01 22:16:12 -04:00
committed by GitHub
parent 605cad0be7
commit 68f5867cf0
2 changed files with 84 additions and 13 deletions

View File

@ -1052,6 +1052,8 @@ class InfoExtractor(object):
def raise_no_formats(self, msg, expected=False, video_id=None):
if expected and self.get_param('ignore_no_formats_error'):
self.report_warning(msg, video_id)
elif isinstance(msg, ExtractorError):
raise msg
else:
raise ExtractorError(msg, expected=expected, video_id=video_id)