From 7a438da3b12459a6e9df2490c190a64775766863 Mon Sep 17 00:00:00 2001 From: dirkf Date: Wed, 26 Jan 2022 18:12:55 +0000 Subject: [PATCH] [utils] Ensure a value from determine_protocol() --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index f010e733d..e7e6bdbcd 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -4871,7 +4871,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):