mirror of https://github.com/yt-dlp/yt-dlp
[utils] Escape URLs in `sanitized_Request`, not `sanitize_url`
d2558234cf
added escaping of URLs while sanitizing. However, `sanitize_url` may not always receive an actual URL.
Eg: When using `yt-dlp "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.
pull/372/head
parent
6e6390321c
commit
bc6b9bcd65
Loading…
Reference in New Issue