about summary refs log tree commit diff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2022-01-26 18:12:55 +0000
committerdirkf <fieldhouse@gmx.net>2022-01-27 05:38:13 +0000
commitcad0ff54113d578eb4033ca300b9b735ebabd626 (patch)
tree6f498d6db748291f58c808d9a1816f2d68cf1931
parentcd1ffab8e17c2d6126e3bbe361c8c760ba3aefc6 (diff)
downloadyoutube-dl-cad0ff54113d578eb4033ca300b9b735ebabd626.tar.gz
youtube-dl-cad0ff54113d578eb4033ca300b9b735ebabd626.tar.xz
youtube-dl-cad0ff54113d578eb4033ca300b9b735ebabd626.zip
Ensure a value from determine_protocol()
-rw-r--r--youtube_dl/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 6b18cb893..1e5291285 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -4419,7 +4419,7 @@ def determine_protocol(info_dict):
     elif ext == 'f4m':
         return 'f4m'
 
-    return compat_urllib_parse_urlparse(url).scheme
+    return compat_urllib_parse_urlparse(url).scheme or 'http'
 
 
 def render_table(header_row, data):