From e68f1e6c3197ccdd1149f4c8fe4142615e8aa4a9 Mon Sep 17 00:00:00 2001 From: dunkla Date: Sat, 10 Jan 2026 15:39:40 +0100 Subject: [PATCH] Update lastgenre docstring and remove misleading comment (ref https://github.com/beetbox/beets/pull/6169#issuecomment-3716893013) --- beetsplug/lastgenre/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/beetsplug/lastgenre/__init__.py b/beetsplug/lastgenre/__init__.py index 1d57f6f59..a961a08b1 100644 --- a/beetsplug/lastgenre/__init__.py +++ b/beetsplug/lastgenre/__init__.py @@ -331,14 +331,12 @@ class LastGenrePlugin(plugins.BeetsPlugin): return tags def _get_existing_genres(self, obj: LibModel) -> list[str]: - """Return a list of genres for this Item or Album. Empty string genres - are removed.""" + """Return a list of genres for this Item or Album.""" if isinstance(obj, library.Item): genres_list = obj.get("genres", with_album=False) else: genres_list = obj.get("genres") - # Filter out empty strings return genres_list def _combine_resolve_and_log(