0
0
Fork 0

[YoutubeDL] improve error message for file:/// URLs

main
Jaime Marquínez Ferrándiz 2016-01-14 14:07:54 +01:00
parent 6240b0a278
commit 4240d50496
1 changed files with 1 additions and 1 deletions

View File

@ -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(