mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[zingmp3] Add fatal flag
This commit is contained in:
parent
43abd79950
commit
8119597d6f
1 changed files with 3 additions and 1 deletions
|
@ -9,9 +9,11 @@
|
||||||
|
|
||||||
class ZingMp3BaseInfoExtractor(InfoExtractor):
|
class ZingMp3BaseInfoExtractor(InfoExtractor):
|
||||||
|
|
||||||
def _extract_item(self, item):
|
def _extract_item(self, item, fatal=True):
|
||||||
error_message = item.find('./errormessage').text
|
error_message = item.find('./errormessage').text
|
||||||
if error_message:
|
if error_message:
|
||||||
|
if not fatal:
|
||||||
|
return
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'%s returned error: %s' % (self.IE_NAME, error_message),
|
'%s returned error: %s' % (self.IE_NAME, error_message),
|
||||||
expected=True)
|
expected=True)
|
||||||
|
|
Loading…
Reference in a new issue