A feature-rich command-line audio/video downloader
Revert "[utils] Encode URLs in `YoutubeDLCookieProcessor`" This reverts commit 915f911e365736227e134ad654601443dbfd7ccb.
pukkandanf5fa042c8230
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.pyindex 9ddd6453f5..1322c3aaa6 100644--- a/yt_dlp/utils.py+++ b/yt_dlp/utils.py@@ -2926,15 +2926,7 @@ class YoutubeDLCookieProcessor(compat_urllib_request.HTTPCookieProcessor):# response.headers[set_cookie_header] = set_cookie_escapedreturn compat_urllib_request.HTTPCookieProcessor.http_response(self, request, response)- def http_request(self, request):- # If the URL contains non-ASCII characters, the cookies- # are lost before the request reaches YoutubeDLHandler.- # So we percent encode the url before adding cookies- # See: https://github.com/yt-dlp/yt-dlp/issues/263- request = update_Request(request, url=escape_url(request.get_full_url()))- return compat_urllib_request.HTTPCookieProcessor.http_request(self, request)-- https_request = http_request+ https_request = compat_urllib_request.HTTPCookieProcessor.http_requesthttps_response = http_response