From 66130655ea1801469702e6225a2b05e1fa737f28 Mon Sep 17 00:00:00 2001 From: oittaa Date: Thu, 7 Jan 2016 05:35:32 +0200 Subject: [PATCH] Don't add broken video formats from Crunchyroll Fixes #7930 - Error downloading some videos from crunchyroll -- TypeError: argument of type 'NoneType' is not iterable --- youtube_dl/extractor/crunchyroll.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/crunchyroll.py b/youtube_dl/extractor/crunchyroll.py index 00d943f77..abd49e25c 100644 --- a/youtube_dl/extractor/crunchyroll.py +++ b/youtube_dl/extractor/crunchyroll.py @@ -338,6 +338,9 @@ Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text 'height': int_or_none(xpath_text(metadata, './height')), 'width': int_or_none(xpath_text(metadata, './width')), } + + if video_url is None: + continue if '.fplive.net/' in video_url: video_url = re.sub(r'^rtmpe?://', 'http://', video_url.strip())