mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	Add "--video-password" option (related #889)
Used only for accessing a private video Restore the error when the account is missing
This commit is contained in:
		| @@ -20,9 +20,9 @@ class VimeoIE(InfoExtractor): | ||||
|     IE_NAME = u'vimeo' | ||||
|  | ||||
|     def _verify_video_password(self, url, video_id, webpage): | ||||
|         password = self._downloader.params.get('password', None) | ||||
|         password = self._downloader.params.get('videopassword', None) | ||||
|         if password is None: | ||||
|             raise ExtractorError(u'This video is protected by a password, use the --password option') | ||||
|             raise ExtractorError(u'This video is protected by a password, use the --video-password option') | ||||
|         token = re.search(r'xsrft: \'(.*?)\'', webpage).group(1) | ||||
|         data = compat_urllib_parse.urlencode({'password': password, | ||||
|                                               'token': token}) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz