From 66fcf1db40923ff91bc523fb20d42eb0234bee54 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Wed, 21 Jul 2010 14:41:10 +0100 Subject: [PATCH] Another importer fix --- openlp/plugins/songs/lib/olpimport.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openlp/plugins/songs/lib/olpimport.py b/openlp/plugins/songs/lib/olpimport.py index a2044b497..e4a58277c 100644 --- a/openlp/plugins/songs/lib/olpimport.py +++ b/openlp/plugins/songs/lib/olpimport.py @@ -140,7 +140,11 @@ class OpenLPSongImport(object): 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