aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/zingmp3.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-10 22:08:38 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-10 22:08:38 +0600
commit8119597d6ff52a671fa359378dfbdee13f24f882 (patch)
tree2ea2713769683d9040901a65de6f501efa4e2c50 /youtube_dl/extractor/zingmp3.py
parent43abd79950b7ba0c3b6e8a26b624e439036b1c7a (diff)
downloadyoutube-dl-8119597d6ff52a671fa359378dfbdee13f24f882.tar.xz
[zingmp3] Add fatal flag
Diffstat (limited to 'youtube_dl/extractor/zingmp3.py')
-rw-r--r--youtube_dl/extractor/zingmp3.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/zingmp3.py b/youtube_dl/extractor/zingmp3.py
index 1059dd75f..3f46f9049 100644
--- a/youtube_dl/extractor/zingmp3.py
+++ b/youtube_dl/extractor/zingmp3.py
@@ -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)