]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/vube.py
Add option `--ignore-no-formats-error`
[yt-dlp.git] / yt_dlp / extractor / vube.py
index 8ce3a6b81b6ed69e5fd4960ab4721ecd45bf750e..c92b47e6346566b7eb8afecbffadaf5b66271307 100644 (file)
@@ -8,7 +8,6 @@
 )
 from ..utils import (
     int_or_none,
-    ExtractorError,
 )
 
 
@@ -125,13 +124,13 @@ def _real_extract(self, url):
                 })
             formats.append(fmt)
 
-        self._sort_formats(formats)
-
         if not formats and video.get('vst') == 'dmca':
-            raise ExtractorError(
+            self.raise_no_formats(
                 'This video has been removed in response to a complaint received under the US Digital Millennium Copyright Act.',
                 expected=True)
 
+        self._sort_formats(formats)
+
         title = video['title']
         description = video.get('description')
         thumbnail = self._proto_relative_url(video.get('thumbnail_src'), scheme='http:')