mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 14:03:12 +01:00
Revert "Include lower-casing in _get_existing already"
This reverts commit d5cf376a51.
This commit is contained in:
parent
d703a7f712
commit
4f0837c724
1 changed files with 3 additions and 4 deletions
|
|
@ -303,9 +303,7 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
else:
|
||||
genre_str = obj.get("genre")
|
||||
|
||||
return [
|
||||
g.lower() for g in genre_str.split(self.config["separator"].get())
|
||||
]
|
||||
return genre_str.split(self.config["separator"].get())
|
||||
|
||||
def _combine_genres(
|
||||
self, old: list[str], new: list[str]
|
||||
|
|
@ -346,10 +344,11 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
return obj.get("genre"), "keep any, no-force"
|
||||
|
||||
if self.config["force"]:
|
||||
genres = self._get_existing_genres(obj)
|
||||
# Force doesn't keep any unless keep_existing is set.
|
||||
# Whitelist validation is handled in _resolve_genres.
|
||||
if self.config["keep_existing"]:
|
||||
keep_genres = self._get_existing_genres(obj)
|
||||
keep_genres = [g.lower() for g in genres]
|
||||
|
||||
# Run through stages: track, album, artist,
|
||||
# album artist, or most popular track genre.
|
||||
|
|
|
|||
Loading…
Reference in a new issue