mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:17:07 -05:00 
			
		
		
		
	[youtube] Encode the data when submitting the form for confirming the age
Needed on python 3
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user