Apply temp logging leftover review suggestions

Useless variables that only were introduced for temporary debug logging
while refactoring earlier. Get rid of them.

Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
J0J0 Todos 2025-01-11 09:41:44 +01:00 committed by J0J0 Todos
parent b476560d76
commit bd0c02437a

View file

@ -248,17 +248,14 @@ class LastGenrePlugin(plugins.BeetsPlugin):
# c14n only adds allowed genres but we may have had forbidden genres in
# the original tags list
tags = [x for x in tags if self._is_allowed(x)]
return tags
return [x for x in tags if self._is_allowed(x)]
def fetch_genre(self, lastfm_obj):
"""Return the genre for a pylast entity or None if no suitable genre
can be found. Ex. 'Electronic, House, Dance'
"""
min_weight = self.config["min_weight"].get(int)
fetched = self._tags_for(lastfm_obj, min_weight)
return fetched
return self._tags_for(lastfm_obj, min_weight)
def _is_allowed(self, genre):
"""Returns True if genre in whitelist or whitelist disabled."""