mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
slight refactoring: strip album only once
This commit is contained in:
parent
9894e8752b
commit
9c36a41ea8
1 changed files with 2 additions and 3 deletions
|
|
@ -774,11 +774,10 @@ class LyricsPlugin(plugins.BeetsPlugin):
|
|||
% (self.artist,
|
||||
u'=' * len(self.artist))
|
||||
if self.album != item.album:
|
||||
tmpalbum = self.album = item.album
|
||||
tmpalbum = self.album = item.album.strip()
|
||||
if self.album == '':
|
||||
tmpalbum = u'Unknown album'
|
||||
self.rest += u"%s\n%s\n\n" % (tmpalbum.strip(),
|
||||
u'-' * len(tmpalbum.strip()))
|
||||
self.rest += u"%s\n%s\n\n" % (tmpalbum, u'-' * len(tmpalbum))
|
||||
title_str = u":index:`%s`" % item.title.strip()
|
||||
block = u'| ' + item.lyrics.replace(u'\n', u'\n| ')
|
||||
self.rest += u"%s\n%s\n\n%s\n\n" % (title_str,
|
||||
|
|
|
|||
Loading…
Reference in a new issue