openlp.org 1.x importer graped authors out of the lyrics

This commit is contained in:
M2j 2010-11-04 21:45:49 +01:00
parent 4294ae83b8
commit fa89971771
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,10 @@ class OpenLP1SongImport(SongImport):
unicode(translate('SongsPlugin.ImportWizardForm',
'Importing "%s"...')) % title)
self.title = title
self.process_song_text(lyrics)
verses = lyrics.split(u'\n\n')
for verse in verses:
if verse.strip() != u'':
self.add_verse(verse.strip())
self.add_copyright(copyright)
cursor.execute(u'SELECT authorid FROM songauthors '
u'WHERE songid = %s' % song_id)