0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

[YoutubeDL] Return early when extraction of url_transparent fails

This commit is contained in:
Sergey M․ 2017-03-31 23:57:35 +07:00
parent 3e943cfe09
commit 1640eb0961
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -837,6 +837,12 @@ def process_ie_result(self, ie_result, download=True, extra_info={}):
ie_result['url'], ie_key=ie_result.get('ie_key'),
extra_info=extra_info, download=False, process=False)
# extract_info may return None when ignoreerrors is enabled and
# extraction failed with an error, don't crash and return early
# in this case
if not info:
return info
force_properties = dict(
(k, v) for k, v in ie_result.items() if v is not None)
for f in ('_type', 'url', 'ie_key'):