diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-04-29 04:56:09 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-04-29 05:20:50 +0530 |
commit | d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a (patch) | |
tree | 34f59522c3a7814d2533162553f4f28b23def026 /yt_dlp/utils.py | |
parent | f5fa042c82300218a2d07b95dd6b9c0756745db3 (diff) | |
download | hypervideo-pre-d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a.tar.lz hypervideo-pre-d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a.tar.xz hypervideo-pre-d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a.zip |
[utils] Escape URL while sanitizing
Closes #263
While this fixes the issue in question, it does not try to address the root-cause of the problem
Refer: 915f911e365736227e134ad654601443dbfd7ccb, f5fa042c82300218a2d07b95dd6b9c0756745db3
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 1322c3aaa..eb266dda7 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -2166,7 +2166,7 @@ def sanitize_url(url): for mistake, fixup in COMMON_TYPOS: if re.match(mistake, url): return re.sub(mistake, fixup, url) - return url + return escape_url(url) def sanitized_Request(url, *args, **kwargs): |