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/wat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/extractor/wat.py') diff --git a/yt_dlp/extractor/wat.py b/yt_dlp/extractor/wat.py index f1bccc2d6..05dcc1f17 100644 --- a/yt_dlp/extractor/wat.py +++ b/yt_dlp/extractor/wat.py @@ -87,7 +87,7 @@ class WatIE(InfoExtractor): extract_formats({delivery.get('format'): delivery.get('url')}) if not formats: if delivery.get('drm'): - raise ExtractorError('This video is DRM protected.', expected=True) + self.raise_no_formats('This video is DRM protected.', expected=True) manifest_urls = self._download_json( 'http://www.wat.tv/get/webhtml/' + video_id, video_id, fatal=False) if manifest_urls: -- cgit v1.2.3