logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: f790c43f6e33782c6a6eaaff68bbd30aad875efe
parent 8119597d6ff52a671fa359378dfbdee13f24f882
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sat, 10 Oct 2015 22:09:21 +0600

[zingmp3:album] Skip broken items

Diffstat:

Myoutube_dl/extractor/zingmp3.py4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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)