mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[zingmp3] Add fatal flag
This commit is contained in:
		| @@ -9,9 +9,11 @@ from ..utils import ExtractorError | ||||
|  | ||||
| class ZingMp3BaseInfoExtractor(InfoExtractor): | ||||
|  | ||||
|     def _extract_item(self, item): | ||||
|     def _extract_item(self, item, fatal=True): | ||||
|         error_message = item.find('./errormessage').text | ||||
|         if error_message: | ||||
|             if not fatal: | ||||
|                 return | ||||
|             raise ExtractorError( | ||||
|                 '%s returned error: %s' % (self.IE_NAME, error_message), | ||||
|                 expected=True) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․