← Back to team overview

openlp-core team mailing list archive

[Merge] lp:~meths/openlp/trivialfixes into lp:openlp

 

Jon Tibble has proposed merging lp:~meths/openlp/trivialfixes into lp:openlp.

Requested reviews:
  OpenLP Core (openlp-core)

For more details, see:
https://code.launchpad.net/~meths/openlp/trivialfixes/+merge/50463

Fix the CCLI author handling to work with or without a comma
-- 
https://code.launchpad.net/~meths/openlp/trivialfixes/+merge/50463
Your team OpenLP Core is requested to review the proposed merge of lp:~meths/openlp/trivialfixes into lp:openlp.
=== modified file 'openlp/plugins/songs/lib/cclifileimport.py'
--- openlp/plugins/songs/lib/cclifileimport.py	2011-02-18 17:34:43 +0000
+++ openlp/plugins/songs/lib/cclifileimport.py	2011-02-19 19:52:59 +0000
@@ -200,7 +200,7 @@
             author_list = song_author.split(u'|')
         for author in author_list:
             seperated = author.split(u',')
-            self.add_author(seperated[1].strip() + u' ' + seperated[0].strip())
+            self.add_author(u' '.join(seperated))
         self.title = song_name
         self.copyright = song_copyright
         self.ccli_number = song_ccli


Follow ups