mirror of
https://github.com/beetbox/beets.git
synced 2026-02-23 15:59:47 +01:00
Update lastgenre docstring and remove misleading comment (ref https://github.com/beetbox/beets/pull/6169#issuecomment-3716893013)
This commit is contained in:
parent
1a648a4223
commit
d25c6204eb
1 changed files with 1 additions and 3 deletions
|
|
@ -336,14 +336,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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue