From c23b014cff0e79a5bde66135c4f355e7a3133010 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 5 Jan 2014 22:02:39 +0100 Subject: [PATCH] Set default timeout --- couchpotato/core/_base/_core/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/couchpotato/core/_base/_core/main.py b/couchpotato/core/_base/_core/main.py index 803ac5a3..f2435eb8 100644 --- a/couchpotato/core/_base/_core/main.py +++ b/couchpotato/core/_base/_core/main.py @@ -55,6 +55,10 @@ class Core(Plugin): if not Env.get('desktop'): self.signalHandler() + # Set default urlopen timeout + import socket + socket.setdefaulttimeout(30) + def md5Password(self, value): return md5(value) if value else ''