|
|
@@ -14,7 +14,7 @@ def smart(items, criteria):
|
|
|
|
|
|
# First do negative stuff, bad news comes always first
|
|
|
|
|
|
- if item.duration_seconds is not None and item.duration_seconds < 150:
|
|
|
+ if item.duration_seconds is not None and item.duration_seconds < 180:
|
|
|
item.decrement_score(0.5)
|
|
|
|
|
|
if item.duration_seconds is not None and item.duration_seconds > 600:
|
|
|
@@ -54,7 +54,7 @@ def smart(items, criteria):
|
|
|
if item.score > 0:
|
|
|
sortedlist.append(item)
|
|
|
else:
|
|
|
- console.output('Removing {x.artist} - {x.title} from list: Score to low'.format(x=item), console.DBG_INFO)
|
|
|
+ console.output('Removing {x.artist} - {x.title} from list: Score to low ({x.score})'.format(x=item), console.DBG_INFO)
|
|
|
|
|
|
sortedlist.sort(reverse=True, key=lambda x: (x.score, x.duration_seconds))
|
|
|
|