diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-05-03 15:15:32 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-05-10 14:51:38 +0800 |
commit | 51fb4995a5242c0edca09167cf8c4b050cf5a186 (patch) | |
tree | 6405ca1394b088e16e0c08c559b58ba23b2e9676 /youtube_dl/YoutubeDL.py | |
parent | 9e9cd7248d387954d1009087ac300ee3ff6a9766 (diff) |
[utils] Register SOCKS protocols in urllib and support SOCKS4A
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index a96482e68..34eeb77c5 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -64,6 +64,7 @@ from .utils import ( PostProcessingError, preferredencoding, prepend_extension, + register_socks_protocols, render_table, replace_extension, SameFileError, @@ -361,6 +362,8 @@ class YoutubeDL(object): for ph in self.params.get('progress_hooks', []): self.add_progress_hook(ph) + register_socks_protocols() + def warn_if_short_id(self, argv): # short YouTube ID starting with dash? idxs = [ |