mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[refactor] Do not specify redundant None as second argument in dict.get()
This commit is contained in:
		| @@ -232,7 +232,7 @@ class VimeoIE(VimeoBaseInfoExtractor): | ||||
|             return mobj.group(1) | ||||
|  | ||||
|     def _verify_video_password(self, url, video_id, webpage): | ||||
|         password = self._downloader.params.get('videopassword', None) | ||||
|         password = self._downloader.params.get('videopassword') | ||||
|         if password is None: | ||||
|             raise ExtractorError('This video is protected by a password, use the --video-password option', expected=True) | ||||
|         token, vuid = self._extract_xsrft_and_vuid(webpage) | ||||
| @@ -252,7 +252,7 @@ class VimeoIE(VimeoBaseInfoExtractor): | ||||
|             'Verifying the password', 'Wrong password') | ||||
|  | ||||
|     def _verify_player_video_password(self, url, video_id): | ||||
|         password = self._downloader.params.get('videopassword', None) | ||||
|         password = self._downloader.params.get('videopassword') | ||||
|         if password is None: | ||||
|             raise ExtractorError('This video is protected by a password, use the --video-password option') | ||||
|         data = urlencode_postdata(encode_dict({'password': password})) | ||||
| @@ -516,7 +516,7 @@ class VimeoChannelIE(VimeoBaseInfoExtractor): | ||||
|         if not login_form: | ||||
|             return webpage | ||||
|  | ||||
|         password = self._downloader.params.get('videopassword', None) | ||||
|         password = self._downloader.params.get('videopassword') | ||||
|         if password is None: | ||||
|             raise ExtractorError('This album is protected by a password, use the --video-password option', expected=True) | ||||
|         fields = self._hidden_inputs(login_form) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․