Quality guess keyerror. fix #3347

This commit is contained in:
Ruud
2014-06-03 22:53:30 +02:00
parent ab2b2cfe6e
commit 6b9b446e3d
+2 -1
View File
@@ -351,7 +351,8 @@ class QualityPlugin(Plugin):
# Give panelty for all lower qualities
for q in self.qualities[self.order.index(quality.get('identifier'))+1:]:
score[q.get('identifier')]['score'] -= 1
if score.get(q.get('identifier')):
score[q.get('identifier')]['score'] -= 1
def isFinish(self, quality, profile):
if not isinstance(profile, dict) or not profile.get('qualities'):