mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	Make extractor-designated impersonation override --impersonate (#13792)
				
					
				
			Fix 32809eb2da
Authored by: bashonly
			
			
This commit is contained in:
		| @@ -3232,15 +3232,6 @@ class YoutubeDL: | ||||
|         else: | ||||
|             params = self.params | ||||
| 
 | ||||
|         impersonate = info.pop('impersonate', None) | ||||
|         # Do not override --impersonate with extractor-specified impersonation | ||||
|         if params.get('impersonate') is None: | ||||
|             available_target, requested_targets = self._parse_impersonate_targets(impersonate) | ||||
|             if available_target: | ||||
|                 info['impersonate'] = available_target | ||||
|             elif requested_targets: | ||||
|                 self.report_warning(self._unavailable_targets_message(requested_targets), only_once=True) | ||||
| 
 | ||||
|         fd = get_suitable_downloader(info, params, to_stdout=(name == '-'))(self, params) | ||||
|         if not test: | ||||
|             for ph in self._progress_hooks: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly