Explorar o código

[zingmp3:album] Skip broken items

Sergey M․ %!s(int64=10) %!d(string=hai) anos
pai
achega
f790c43f6e
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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)