Browse Source

[zingmp3:album] Skip broken items

Sergey M․ 10 năm trước cách đây
mục cha
commit
f790c43f6e
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      youtube_dl/extractor/zingmp3.py

+ 3 - 1
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)