This commit is contained in:
mano3m
2014-06-23 21:13:59 +02:00
parent 9f6036c8d6
commit 424a3cd892
5 changed files with 13 additions and 12 deletions
+2 -1
View File
@@ -381,7 +381,8 @@ class QualityPlugin(Plugin):
def isFinish(self, quality, profile, release_age = 0):
if not isinstance(profile, dict) or not profile.get('qualities'):
profile = fireEvent('profile.default', single = True)
# No profile so anything (scanned) is good enough
return True
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]