projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43abd79
)
[zingmp3] Add fatal flag
author
Sergey M․
<dstftw@gmail.com>
Sat, 10 Oct 2015 16:08:38 +0000
(22:08 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 10 Oct 2015 16:08:38 +0000
(22:08 +0600)
youtube_dl/extractor/zingmp3.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/zingmp3.py
b/youtube_dl/extractor/zingmp3.py
index 1059dd75fd48200078955c7a619036881e8417bc..3f46f9049398c5f3af9d7cd8432df760621c4ce4 100644
(file)
--- 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)