]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[zingmp3] Add fatal flag
authorSergey M․ <dstftw@gmail.com>
Sat, 10 Oct 2015 16:08:38 +0000 (22:08 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 10 Oct 2015 16:08:38 +0000 (22:08 +0600)
youtube_dl/extractor/zingmp3.py

index 1059dd75fd48200078955c7a619036881e8417bc..3f46f9049398c5f3af9d7cd8432df760621c4ce4 100644 (file)
@@ -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)