youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit d8bbf2018effb0043dd418596ef1ab729239e129
parent 187f491ad21d369f34da9e4982ac4b106dfc89ca
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Sat, 12 Jan 2013 20:33:03 +0100

Aggressive test timeout to catch hanging servers

Diffstat:
Mtest/test_download.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/test/test_download.py b/test/test_download.py @@ -26,6 +26,7 @@ cookie_processor = compat_urllib_request.HTTPCookieProcessor(jar) proxy_handler = compat_urllib_request.ProxyHandler() opener = compat_urllib_request.build_opener(proxy_handler, cookie_processor, YoutubeDLHandler()) compat_urllib_request.install_opener(opener) +socket.setdefaulttimeout(10) def _try_rm(filename): """ Remove a file if it exists """