mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 00:25:08 +00:00
Add option --ignore-no-formats-error
* Ignores the "no video format" and similar errors * Experimental - Some extractors may still throw these errors
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user