mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[cleanup] Misc (#10807)
Closes #10751, Closes #10769, Closes #10791 Authored by: bashonly, Codenade, pzhlkj6612, seproDev, coletdjnz, grqz, Grub4K Co-authored-by: Codenade <amadeus.dorian04@gmail.com> Co-authored-by: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: coletdjnz <coletdjnz@protonmail.com> Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com> Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
		| @@ -508,7 +508,7 @@ class FFmpegFD(ExternalFD): | ||||
|         env = None | ||||
|         proxy = self.params.get('proxy') | ||||
|         if proxy: | ||||
|             if not re.match(r'^[\da-zA-Z]+://', proxy): | ||||
|             if not re.match(r'[\da-zA-Z]+://', proxy): | ||||
|                 proxy = f'http://{proxy}' | ||||
| 
 | ||||
|             if proxy.startswith('socks'): | ||||
| @@ -559,7 +559,7 @@ class FFmpegFD(ExternalFD): | ||||
| 
 | ||||
|         selected_formats = info_dict.get('requested_formats') or [info_dict] | ||||
|         for i, fmt in enumerate(selected_formats): | ||||
|             is_http = re.match(r'^https?://', fmt['url']) | ||||
|             is_http = re.match(r'https?://', fmt['url']) | ||||
|             cookies = self.ydl.cookiejar.get_cookies_for_url(fmt['url']) if is_http else [] | ||||
|             if cookies: | ||||
|                 args.extend(['-cookies', ''.join( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly