mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-05-19 11:39:28 +00:00
[utils] Ensure a value from determine_protocol()
This commit is contained in:
parent
045ff706ee
commit
7a438da3b1
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue