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/npo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/extractor/npo.py') diff --git a/yt_dlp/extractor/npo.py b/yt_dlp/extractor/npo.py index ca6dbfc81..573a89092 100644 --- a/yt_dlp/extractor/npo.py +++ b/yt_dlp/extractor/npo.py @@ -247,7 +247,7 @@ class NPOIE(NPOBaseIE): if not formats: if not self._downloader.params.get('allow_unplayable_formats') and drm: - raise ExtractorError('This video is DRM protected.', expected=True) + self.raise_no_formats('This video is DRM protected.', expected=True) return self._sort_formats(formats) -- cgit v1.2.3