]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/medaltv.py
Add option `--ignore-no-formats-error`
[yt-dlp.git] / yt_dlp / extractor / medaltv.py
index 1603b55f6f403106c4c9a0476ed3f4bb524ea3ee..4bca6f053c981f702f4708815134af955cea9305 100644 (file)
@@ -97,11 +97,11 @@ def add_item(container, item_url, height, id_key='format_id', item_id=None):
         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)