Get default "stop after" if it isn't set yet. fix #3499
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user