mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[YoutubeDL] improve error message for file:/// URLs
This commit is contained in:
		| @@ -1994,7 +1994,7 @@ class YoutubeDL(object): | ||||
|         file_handler = compat_urllib_request.FileHandler() | ||||
|  | ||||
|         def file_open(*args, **kwargs): | ||||
|             raise compat_urllib_error.URLError('file protocol is disabled') | ||||
|             raise compat_urllib_error.URLError('file:/// protocol is explicitly disabled in youtube-dl for security reasons') | ||||
|         file_handler.file_open = file_open | ||||
|  | ||||
|         opener = compat_urllib_request.build_opener( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz