mirror of
https://github.com/beetbox/beets.git
synced 2026-02-21 23:03:26 +01:00
Bugfix:
Items had not been filtered. Converting the tags' weight into an integer solves it.
This commit is contained in:
parent
89e4a848b4
commit
74f58e7b3c
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue