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

Needed on python 3
pull/8/head
Jaime Marquínez Ferrándiz 11 years ago
parent 38c2e5b8d5
commit 5700e7792a

@ -111,7 +111,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor):
'next_url': '/', 'next_url': '/',
'action_confirm': 'Confirm', '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( self._download_webpage(
req, None, req, None,

Loading…
Cancel
Save