projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e943cf
)
[YoutubeDL] Return early when extraction of url_transparent fails
author
Sergey M․
<dstftw@gmail.com>
Fri, 31 Mar 2017 16:57:35 +0000
(23:57 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 31 Mar 2017 16:57:35 +0000
(23:57 +0700)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 21586f0f4abe821c4b8ed5f199cb8e807be4db42..54bc8b06d9827408e66232cedc1629fcd175b52a 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-837,6
+837,12
@@
class YoutubeDL(object):
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'):