mirror of
https://github.com/beetbox/beets.git
synced 2025-12-31 21:12:43 +01:00
Make lyrics plugin group songs by 'albumartist' rather than 'artist'
when writing ReST
This commit is contained in:
parent
24d5188147
commit
3348a466f4
2 changed files with 5 additions and 2 deletions
|
|
@ -772,7 +772,7 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
writing continuously to the same files.
|
||||
"""
|
||||
|
||||
if item is None or slug(self.artist) != slug(item.artist):
|
||||
if item is None or slug(self.artist) != slug(item.albumartist):
|
||||
if self.rest is not None:
|
||||
path = os.path.join(directory, 'artists',
|
||||
slug(self.artist) + u'.rst')
|
||||
|
|
@ -781,7 +781,7 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
self.rest = None
|
||||
if item is None:
|
||||
return
|
||||
self.artist = item.artist.strip()
|
||||
self.artist = item.albumartist.strip()
|
||||
self.rest = u"%s\n%s\n\n.. contents::\n :local:\n\n" \
|
||||
% (self.artist,
|
||||
u'=' * len(self.artist))
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@ Fixes:
|
|||
with Genius. :bug:`2771`
|
||||
* :doc:`/plugins/lyrics`: The ``lyrics`` command previously write ReST files
|
||||
by default. This default has been fixed.
|
||||
* :doc:`/plugins/lyrics`: When writing ReST files, the ``lyrics`` command
|
||||
now groups lyrics by the ``albumartist`` field, rather than ``artist``.
|
||||
:bug:`2924`
|
||||
* Plugins can now see updated import task state, such as when rejecting the
|
||||
initial candidates and finding new ones via a manual search. Notably, this
|
||||
means that the importer prompt options that the :doc:`/plugins/edit`
|
||||
|
|
|
|||
Loading…
Reference in a new issue