openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #02658
[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)
Import any old alternative title hidden in the search title field
--
https://code.launchpad.net/~meths/openlp/trivialfixes/+merge/30534
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/olpimport.py'
--- openlp/plugins/songs/lib/olpimport.py 2010-07-21 12:11:32 +0000
+++ openlp/plugins/songs/lib/olpimport.py 2010-07-21 13:44:47 +0000
@@ -140,7 +140,11 @@
if has_media_files:
new_song.alternate_title = song.alternate_title
else:
- new_song.alternate_title = u''
+ old_titles = song.search_title.split(u'@')
+ if len(old_titles) > 1:
+ new_song.alternate_title = old_titles[1]
+ else:
+ new_song.alternate_title = u''
new_song.search_title = song.search_title
new_song.song_number = song.song_number
new_song.lyrics = song.lyrics
Follow ups