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

This commit is contained in:
M2j 2012-01-28 17:08:01 +01:00
parent c3fde5ec65
commit c0197d1af6

View File

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