Add score penalty for not having proper size information

This commit is contained in:
Ruud
2012-01-14 14:06:33 +01:00
parent f7b853287a
commit afdd3e3395
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -1,7 +1,8 @@
from couchpotato.core.event import addEvent
from couchpotato.core.logger import CPLog
from couchpotato.core.plugins.base import Plugin
from couchpotato.core.plugins.score.scores import nameScore, nameRatioScore
from couchpotato.core.plugins.score.scores import nameScore, nameRatioScore, \
sizeScore
log = CPLog(__name__)
@@ -19,4 +20,6 @@ class Score(Plugin):
for movie_title in movie['library']['titles']:
score += nameRatioScore(nzb['name'], movie_title['title'])
score += sizeScore(nzb['size'])
return score