Quality guess keyerror. fix #3347
This commit is contained in:
1 parent
ab2b2cfe6e
commit
6b9b446e3d
1 file changed
+2
-1
@@ -351,7 +351,8 @@ class QualityPlugin(Plugin):
|
|||||||
|
|
||||||
# Give panelty for all lower qualities
|
# Give panelty for all lower qualities
|
||||||
for q in self.qualities[self.order.index(quality.get('identifier'))+1:]:
|
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):
|
def isFinish(self, quality, profile):
|
||||||
if not isinstance(profile, dict) or not profile.get('qualities'):
|
if not isinstance(profile, dict) or not profile.get('qualities'):
|
||||||
|
|||||||
Reference in new issue
Block a user