Escape URLs in `sanitized_Request`, not `sanitize_url` d2558234cf5dd12d6896eed5427b7d...
authorpukkandan <pukkandan.ytdlp@gmail.com>
Tue, 1 Jun 2021 12:35:41 +0000 (18:05 +0530)
committerdirkf <fieldhouse@gmx.net>
Mon, 20 Feb 2023 20:27:25 +0000 (20:27 +0000)
commit1d3751c3fe50b203d3e2bff71d866c8c500f8288
treef114ce1ae17ea24c44f3e3b5e5428822d4040c0d
parent6067451e432fb65d487a8a67bb5cff52efb9ccf4
Escape URLs in `sanitized_Request`, not `sanitize_url` d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a added escaping of URLs while sanitizing. However, `sanitize_url` may not always receive an actual URL. Eg: When using `youtube-dl "search query" --default-search ytsearch`, `search query` gets escaped to `search%20query` before being prefixed with `ytsearch:` which is not the intended behavior. So the escaping is moved to `sanitized_Request` instead.
test/test_utils.py
youtube_dl/extractor/generic.py
youtube_dl/utils.py