commit: 6f0be937473c5d5f60cd8e712287fcee844093d5
parent af62de104f33ebf8b473b3f7935451077fa56ee9
Author: Sergey M․ <dstftw@gmail.com>
Date: Sun, 15 Jan 2017 06:09:32 +0700
[YoutubeDL] Improve protocol auto determining (closes #11720)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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