Importer fix

bzr-revno: 959
This commit is contained in:
Jon Tibble 2010-07-21 23:42:17 +01:00
commit 5178172c80

View File

@ -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