Skip to content

Commit

Permalink
fix: revert prepending electronic sub genre
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoltzsche committed Jan 13, 2024
1 parent 6d9ee3c commit c4d4d42
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions beetsplug/autogenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,13 @@ def _essentia_genre(self, item):
# Prepend electronic to genre list
genres = ['electronic'] + [genre]
genre_electro = ELECTRONIC_GENRES.get(genre_electronic)
if genre_electro:
if genre_electronic_probability > genre_electronic_strong:
# Prepend concrete electronic sub genre to list
genres = [genre_electro] + genres
else: # Append electronic sub genre to list
genres += [genre_electro]
if genre_electro: # Append electronic sub genre to list
genres += [genre_electro]
genre = self._list2str(genres)

if genre_electronic_probability > genre_electronic_append:
if genre_rosamerica in ('rhy', 'pop', 'hip'):
# Append Electronic to genre list
# Append electronic to genre list
genres = self._str2list(genre)
if 'electronic' not in genres:
genre = self._list2str(genres + ['electronic'])
Expand Down

0 comments on commit c4d4d42

Please sign in to comment.