Skip to content

Commit 15a912b

Browse files
committed
lastgenre: Include some refactor from beetbox#6367
1 parent 0e15080 commit 15a912b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

beetsplug/lastgenre/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ def fetch_genre(
198198
def _filter_valid(self, genres: Iterable[str]) -> list[str]:
199199
"""Filter genres based on whitelist.
200200
201-
Depending on the whitelist property, valid means a genre is in the
202-
whitelist or any genre is allowed.
201+
Returns all genres if no whitelist is configured, otherwise returns
202+
only genres that are in the whitelist.
203203
"""
204204
if not self.whitelist:
205205
return list(genres)

0 commit comments

Comments
 (0)