aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-10 22:09:21 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-10 22:09:21 +0600
commitf790c43f6e33782c6a6eaaff68bbd30aad875efe (patch)
tree81c0cbb453d179049ec594b97ab1720fb1ce4651
parent8119597d6ff52a671fa359378dfbdee13f24f882 (diff)
[zingmp3:album] Skip broken items
-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 3f46f9049..437eecb67 100644
--- a/youtube_dl/extractor/zingmp3.py
+++ b/youtube_dl/extractor/zingmp3.py
@@ -45,7 +45,9 @@ class ZingMp3BaseInfoExtractor(InfoExtractor):
entries = []
for i, item in enumerate(items, 1):
- entry = self._extract_item(item)
+ entry = self._extract_item(item, fatal=False)
+ if not entry:
+ continue
entry['id'] = '%s-%d' % (id, i)
entries.append(entry)