mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-27 14:35:36 +08:00
Don't add broken video formats from Crunchyroll
Fixes #7930 - Error downloading some videos from crunchyroll -- TypeError: argument of type 'NoneType' is not iterable
This commit is contained in:
parent
51d3045de2
commit
66130655ea
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user