mirror of
https://github.com/beetbox/beets.git
synced 2026-02-18 21:36:35 +01:00
simplify genre unpacking in beetsplug/lastgenre/__init__.py
Co-authored-by: Šarūnas Nejus <snejus@protonmail.com>
This commit is contained in:
parent
4fec632d8c
commit
c735ffb670
1 changed files with 3 additions and 3 deletions
|
|
@ -470,9 +470,9 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
def _fetch_and_log_genre(self, obj: LibModel) -> None:
|
||||
"""Fetch genre and log it."""
|
||||
self._log.info(str(obj))
|
||||
genres_list, label = self._get_genre(obj)
|
||||
obj.genres = genres_list
|
||||
self._log.debug("Resolved ({}): {}", label, genres_list)
|
||||
obj.genres, label = self._get_genre(obj)
|
||||
self._log.debug("Resolved ({}): {}", label, obj.genres)
|
||||
|
||||
|
||||
ui.show_model_changes(obj, fields=["genres"], print_obj=False)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue