From 7c5d0ad71c7fe171d314ec28a67c72210440f861 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Sat, 17 Jun 2023 08:42:52 +0200 Subject: [PATCH] Handle dups of existing genres in lastgenre plugin When handling existing comma-separated genres in the _get_genre method of the plugin, make sure duplicate genres are removed. --- beetsplug/lastgenre/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index d8ddaa079c..5866aece64 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -325,6 +325,7 @@ def _get_genre(self, obj): if allowed: keep_allowed.append(g) if keep_allowed: + keep_allowed = set(keep_allowed) return ", ".join(keep_allowed), "keep" # Track genre (for Items only).