Bug #910860: Strip spaces from author name on CCLI import

bzr-revno: 1872
Fixes: https://launchpad.net/bugs/910860
This commit is contained in:
Meinert Jordan 2012-01-30 22:43:20 +02:00 committed by Raoul Snyman
commit 5b95a33eb7

View File

@ -216,9 +216,8 @@ class CCLIFileImport(SongImport):
for author in author_list: for author in author_list:
separated = author.split(u',') separated = author.split(u',')
if len(separated) > 1: if len(separated) > 1:
self.addAuthor(u' '.join(reversed(separated))) author = u' '.join(map(unicode.strip, reversed(separated)))
else: self.addAuthor(author.strip())
self.addAuthor(author)
self.topics = [topic.strip() for topic in song_topics.split(u'/t')] self.topics = [topic.strip() for topic in song_topics.split(u'/t')]
return self.finish() return self.finish()