aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-01-15 06:09:32 +0700
committerSergey M․ <dstftw@gmail.com>2017-01-15 06:09:32 +0700
commit6f0be937473c5d5f60cd8e712287fcee844093d5 (patch)
tree175486f2f4b990a985742483116b888e25298bde
parentaf62de104f33ebf8b473b3f7935451077fa56ee9 (diff)
[YoutubeDL] Improve protocol auto determining (closes #11720)
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 5d654f55f..41d9a63ee 100755
--- 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