0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

[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:
return protocol
url = info_dict['url']
url = sanitize_url(info_dict['url'])
if url.startswith('rtmp'):
return 'rtmp'
elif url.startswith('mms'):