Don't continue searching lower qualities of correct one is found
This commit is contained in:
@@ -338,9 +338,11 @@ class Release(Plugin):
|
||||
|
||||
def tryDownloadResult(self, results, media, quality_custom, manual = False):
|
||||
|
||||
wait_for = False
|
||||
for rel in results:
|
||||
if quality_custom.get('index') != 0 and quality_custom.get('wait_for', 0) > 0 and rel.get('age') <= quality_custom.get('wait_for', 0):
|
||||
log.info('Ignored, waiting %s days: %s', (quality_custom.get('wait_for') - rel.get('age'), rel['name']))
|
||||
wait_for = True
|
||||
continue
|
||||
|
||||
if rel['status'] in ['ignored', 'failed']:
|
||||
@@ -357,7 +359,7 @@ class Release(Plugin):
|
||||
elif downloaded != 'try_next':
|
||||
break
|
||||
|
||||
return False
|
||||
return wait_for
|
||||
|
||||
def createFromSearch(self, search_results, media, quality):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user