projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af62de1
)
[YoutubeDL] Improve protocol auto determining (closes #11720)
author
Sergey M․
<dstftw@gmail.com>
Sat, 14 Jan 2017 23:09:32 +0000
(06:09 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 14 Jan 2017 23:09:32 +0000
(06:09 +0700)
youtube_dl/YoutubeDL.py
patch
|
blob
|
history
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 5d654f55f681757388f8dcceb5935016ba467a52..41d9a63eece80eb40cf068d1be74608daab5097d 100755
(executable)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-1363,7
+1363,7
@@
class YoutubeDL(object):
format['ext'] = determine_ext(format['url']).lower()
# Automatically determine protocol if missing (useful for format
# selection purposes)
- if
'protocol' not in format
:
+ if
format.get('protocol') is None
:
format['protocol'] = determine_protocol(format)
# Add HTTP headers, so that external programs can use them from the
# json output