1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-05 02:32:44 +01:00

[youtube] Encode the data when submitting the form for confirming the age

Needed on python 3
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-01-25 17:22:41 +01:00
parent 38c2e5b8d5
commit 5700e7792a

View File

@ -111,7 +111,8 @@ def _confirm_age(self):
'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,