[YoutubeDL] Improve protocol auto determining (closes #11720)

pull/8/head
Sergey M․ 2017-01-15 06:09:32 +07:00
rodzic af62de104f
commit 6f0be93747
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2C393E0F18A9236D
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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