Only cache ignored proxies for 1 day

This commit is contained in:
Ruud
2014-05-08 14:51:42 +02:00
parent 6172ce4960
commit b37112600e

View File

@@ -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 = ''