Items had not been filtered. Converting the tags' weight into an integer solves it.
This commit is contained in:
Sven Oos 2015-08-03 23:46:50 +02:00
parent 89e4a848b4
commit 74f58e7b3c

View file

@ -411,7 +411,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
# Filter by weight (optionally).
if min_weight:
res = [el for el in res if (el.weight or 0) >= min_weight]
res = [el for el in res if (int(el.weight) or 0) >= min_weight]
# Get strings from tags.
res = [el.item.get_name().lower() for el in res]