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/videomore.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'yt_dlp/extractor/videomore.py') diff --git a/yt_dlp/extractor/videomore.py b/yt_dlp/extractor/videomore.py index e0c10aa5b..05ae74e33 100644 --- a/yt_dlp/extractor/videomore.py +++ b/yt_dlp/extractor/videomore.py @@ -10,7 +10,6 @@ from ..compat import ( compat_urllib_parse_urlparse, ) from ..utils import ( - ExtractorError, int_or_none, ) @@ -193,8 +192,8 @@ class VideomoreIE(InfoExtractor): error = item.get('error') if error: if error in ('Данное видео недоступно для просмотра на территории этой страны', 'Данное видео доступно для просмотра только на территории России'): - self.raise_geo_restricted(countries=['RU']) - raise ExtractorError(error, expected=True) + self.raise_geo_restricted(countries=['RU'], metadata_available=True) + self.raise_no_formats(error, expected=True) self._sort_formats(formats) return { -- cgit v1.2.3