From b37112600e1be69c764994cf7f8c8f759a189e70 Mon Sep 17 00:00:00 2001 From: Ruud Date: Thu, 8 May 2014 14:51:42 +0200 Subject: [PATCH] Only cache ignored proxies for 1 day --- couchpotato/core/media/_base/providers/torrent/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/media/_base/providers/torrent/base.py b/couchpotato/core/media/_base/providers/torrent/base.py index 2ed496c5..9f5f2890 100644 --- a/couchpotato/core/media/_base/providers/torrent/base.py +++ b/couchpotato/core/media/_base/providers/torrent/base.py @@ -44,7 +44,8 @@ class TorrentProvider(YarrProvider): prop_name = 'proxy.%s' % proxy last_check = float(Env.prop(prop_name, default = 0)) - if last_check > time.time() - 1209600: + + if last_check > time.time() - 86400: continue data = ''