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

This commit is contained in:
Ruud
2014-06-24 21:56:46 +02:00
parent bb19b380b4
commit 1de0443492
+1 -1
View File
@@ -387,7 +387,7 @@ 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