Don't download 0 seed torrents

fix #3728
This commit is contained in:
Ruud
2014-08-01 13:29:39 +02:00
parent 9f12fe2636
commit 4126007cac

View File

@@ -365,7 +365,7 @@ class Release(Plugin):
let_through = False
filtered_results = []
# If a single release comes through the "wait for", let through all
# Filter out ignored and other releases we don't want
for rel in results:
if rel['status'] in ['ignored', 'failed']:
@@ -380,6 +380,11 @@ class Release(Plugin):
log.info('Ignored, size "%sMB" to low: %s', (rel['size'], rel['name']))
continue
if 'seeders' in rel and rel.get('seeders') <= 0:
log.info('Ignored, no seeders: %s', (rel['name']))
continue
# If a single release comes through the "wait for", let through all
rel['wait_for'] = False
if quality_custom.get('index') != 0 and quality_custom.get('wait_for', 0) > 0 and rel.get('age') <= quality_custom.get('wait_for', 0):
rel['wait_for'] = True