From 23008149b6b046d52ff4190edd3b14110b79b9f4 Mon Sep 17 00:00:00 2001 From: Marco 'don' Kaulea Date: Fri, 24 Jul 2015 22:34:12 +0200 Subject: [PATCH] Fix message output --- youtube_dl/YoutubeDL.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 2423c0519..0e33060d2 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -1834,7 +1834,6 @@ class YoutubeDL(object): if 'socks' in sys.modules: # Check if socks was imported opts_socks = self.params.get('socksproxy') - print("Socks {}".format(opts_socks)) if opts_socks is not None and opts_socks: pair = opts_socks.split(':') if len(pair) == 2: @@ -1851,7 +1850,7 @@ class YoutubeDL(object): socks.wrapmodule(compat_urllib_request) else: # Socks was not imported, but the use tried to use it. Tell them if self.params.get('socksproxy'): - self.to_stdout("Can't use socks proxy, socks module not found") + self.report_warning("Can't use socks proxy, socks module not found") debuglevel = 1 if self.params.get('debug_printtraffic') else 0 https_handler = make_HTTPS_handler(self.params, debuglevel=debuglevel)