[utils] Sanitize URL when determining protocol

Closes #1406
This commit is contained in:
pukkandan 2021-10-26 19:31:56 +05:30
parent 7e59ca440a
commit 7de837a5e3
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -4731,7 +4731,7 @@ def determine_protocol(info_dict):
if protocol is not None: if protocol is not None:
return protocol return protocol
url = info_dict['url'] url = sanitize_url(info_dict['url'])
if url.startswith('rtmp'): if url.startswith('rtmp'):
return 'rtmp' return 'rtmp'
elif url.startswith('mms'): elif url.startswith('mms'):