aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorLE <llacb47@users.noreply.github.com>2021-08-01 22:16:12 -0400
committerGitHub <noreply@github.com>2021-08-02 07:46:12 +0530
commit68f5867cf0516f152fc772e96c1931797102694f (patch)
treecc2cb83a7c03a9cb1e2e2ac2f5b040f5514a45af /yt_dlp/extractor/common.py
parent605cad0be7540e974812073641c5a654973b70e4 (diff)
downloadhypervideo-pre-68f5867cf0516f152fc772e96c1931797102694f.tar.lz
hypervideo-pre-68f5867cf0516f152fc772e96c1931797102694f.tar.xz
hypervideo-pre-68f5867cf0516f152fc772e96c1931797102694f.zip
[CBS] Add fallback (#579)
Related: https://github.com/ytdl-org/youtube-dl/issues/29564 Authored-by: llacb47, pukkandan
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index a3ac9dfb7..a4a5b37aa 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -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)