Browse Source

Get default "stop after" if it isn't set yet. fix #3499

pull/3529/head
Ruud 11 years ago
parent
commit
1de0443492
  1. 4
      couchpotato/core/plugins/quality/main.py

4
couchpotato/core/plugins/quality/main.py

@ -387,8 +387,8 @@ class QualityPlugin(Plugin):
try: try:
index = [i for i, identifier in enumerate(profile['qualities']) if identifier == quality['identifier'] and bool(profile['3d'][i] if profile.get('3d') else False) == bool(quality.get('is_3d', False))][0] index = [i for i, identifier in enumerate(profile['qualities']) if identifier == quality['identifier'] and bool(profile['3d'][i] if profile.get('3d') else False) == bool(quality.get('is_3d', False))][0]
if index == 0 or profile['finish'][index] and int(release_age) >= int(profile['stop_after'][0]): if index == 0 or (profile['finish'][index] and int(release_age) >= int(profile.get('stop_after', [0])[0])):
return True return True
return False return False
except: except:

Loading…
Cancel
Save