1
0
Fork 0

[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
commit 68f5867cf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)