A feature-rich command-line audio/video downloader
[youtube] Encode the data when submitting the form for confirming the age
Jaime Marquínez Ferrándiz5700e7792aed
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex c3fbbc0de4..87a5a452e0 100644--- a/youtube_dl/extractor/youtube.py+++ b/youtube_dl/extractor/youtube.py@@ -111,7 +111,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):'next_url': '/','action_confirm': 'Confirm',}- req = compat_urllib_request.Request(self._AGE_URL, compat_urllib_parse.urlencode(age_form))+ req = compat_urllib_request.Request(self._AGE_URL,+ compat_urllib_parse.urlencode(age_form).encode('ascii'))self._download_webpage(req, None,