Fix #1564 (regression from #1559)

This commit is contained in:
Adrian Sampson 2015-08-08 11:23:55 -07:00
parent 7621ae4280
commit 4038f191da

View file

@ -411,7 +411,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
# Filter by weight (optionally).
if min_weight:
res = [el for el in res if (int(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]