From 74f58e7b3cde535071f78c18b50d51f1ea7bb531 Mon Sep 17 00:00:00 2001 From: Sven Oos Date: Mon, 3 Aug 2015 23:46:50 +0200 Subject: [PATCH] Bugfix: Items had not been filtered. Converting the tags' weight into an integer solves it. --- beetsplug/lastgenre/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 07de85a93..db2d8a517 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -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]