From b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 17 Apr 2021 05:39:58 +0530 Subject: Add option `--ignore-no-formats-error` * Ignores the "no video format" and similar errors * Experimental - Some extractors may still throw these errors --- yt_dlp/extractor/medaltv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yt_dlp/extractor/medaltv.py') diff --git a/yt_dlp/extractor/medaltv.py b/yt_dlp/extractor/medaltv.py index 1603b55f6..4bca6f053 100644 --- a/yt_dlp/extractor/medaltv.py +++ b/yt_dlp/extractor/medaltv.py @@ -97,11 +97,11 @@ class MedalTVIE(InfoExtractor): error = clip.get('error') if not formats and error: if error == 404: - raise ExtractorError( + self.raise_no_formats( 'That clip does not exist.', expected=True, video_id=video_id) else: - raise ExtractorError( + self.raise_no_formats( 'An unknown error occurred ({0}).'.format(error), video_id=video_id) -- cgit v1.2.3