mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +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:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan