Skip to content

Commit

Permalink
Streamline lastgenre singleton log with album log
Browse files Browse the repository at this point in the history
It was rather confusing that the lastgenre plugin, when handling
singletons, sometimes showed that it applied genres from last.fm and
sometimes didn't (it did only in debug log). This streamlines the
behaviour:

- Change debug to info log.
- Streamline wording.
- Display details about the track.
  • Loading branch information
JOJ0 committed Oct 29, 2023
1 parent 961f5a2 commit 29ede92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beetsplug/lastgenre/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ def lastgenre_func(lib, opts, args):
# an album
for item in lib.items(ui.decargs(args)):
item.genre, src = self._get_genre(item)
self._log.debug(
"added last.fm item genre ({0}): {1}", src, item.genre
)
item.store()
self._log.info(
"genre for track {0} ({1}): {0.genre}", item, src
)

lastgenre_cmd.func = lastgenre_func
return [lastgenre_cmd]
Expand Down

0 comments on commit 29ede92

Please sign in to comment.