mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 15:33:15 +01:00
Update __init__.py
Also fetch genres for single tracks via query.
This commit is contained in:
parent
7b910c3fde
commit
fc95fb86a1
1 changed files with 6 additions and 1 deletions
|
|
@ -402,7 +402,12 @@ class LastGenrePlugin(plugins.BeetsPlugin):
|
|||
|
||||
if write:
|
||||
item.try_write()
|
||||
|
||||
|
||||
for item in lib.items(ui.decargs(args)):
|
||||
item.genre, src = self._get_genre(item)
|
||||
self._log.debug(u'added last.fm item genre ({0}): {1}', src,
|
||||
item.genre)
|
||||
item.store()
|
||||
lastgenre_cmd.func = lastgenre_func
|
||||
return [lastgenre_cmd]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue