aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/disney.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-17 05:39:58 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-17 08:40:30 +0530
commitb7da73eb19e00e4eab43ec7de129e9aa12f6d5d3 (patch)
treea87c490ae5d4de7e95c7b7a6cb9e5184d4827fd8 /yt_dlp/extractor/disney.py
parent6a39ee13f7613767905a4669d1d0247aafc5a12c (diff)
downloadhypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.lz
hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.xz
hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.zip
Add option `--ignore-no-formats-error`
* Ignores the "no video format" and similar errors * Experimental - Some extractors may still throw these errors
Diffstat (limited to 'yt_dlp/extractor/disney.py')
-rw-r--r--yt_dlp/extractor/disney.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/disney.py b/yt_dlp/extractor/disney.py
index 0eee82fd6..e1ae62ac6 100644
--- a/yt_dlp/extractor/disney.py
+++ b/yt_dlp/extractor/disney.py
@@ -9,7 +9,6 @@ from ..utils import (
unified_strdate,
compat_str,
determine_ext,
- ExtractorError,
update_url_query,
)
@@ -140,7 +139,7 @@ class DisneyIE(InfoExtractor):
'vcodec': 'none' if (width == 0 and height == 0) else None,
})
if not formats and video_data.get('expired'):
- raise ExtractorError(
+ self.raise_no_formats(
'%s said: %s' % (self.IE_NAME, page_data['translations']['video_expired']),
expected=True)
self._sort_formats(formats)