about summary refs log tree commit diff
diff options
context:
space:
mode:
-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):