From 53478cb707c9537088d598908109558f3ea1eae3 Mon Sep 17 00:00:00 2001 From: rimach Date: Fri, 24 Sep 2010 06:16:48 +0200 Subject: [PATCH] bugfixing --- openlp/plugins/songs/lib/songbeamerimport.py | 35 ++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/songs/lib/songbeamerimport.py b/openlp/plugins/songs/lib/songbeamerimport.py index eb709594c..02c989d22 100644 --- a/openlp/plugins/songs/lib/songbeamerimport.py +++ b/openlp/plugins/songs/lib/songbeamerimport.py @@ -100,7 +100,8 @@ class SongBeamerImport(SongImport): def parse_tags(self, line): tag_val = line.split('=') - if len(tag_val[0]) == 0: + if len(tag_val[0]) == 0 or \ + len(tag_val[1]) == 0: return True if tag_val[0] == '#(c)': self.add_copyright(tag_val[1]) @@ -194,4 +195,34 @@ class SongBeamerImport(SongImport): def check_verse_marks(self, line): - pass + if line.startswith('Refrain') or \ + line.startswith('Chorus'): + self.current_verse_type = u'V' + elif line.startswith('Vers') or \ + line.startswith('Verse') or \ + line.startswith('Strophe'): + self.current_verse_type = u'V' + elif line.startswith('Intro'): + pass + elif line.startswith('Coda'): + pass + elif line.startswith('Ending'): + pass + elif line.startswith('Bridge'): + pass + elif line.startswith('Interlude'): + pass + elif line.startswith('Zwischenspiel'): + pass + elif line.startswith('Pre-Chorus'): + pass + elif line.startswith('Pre-Refrain'): + pass + elif line.startswith('Pre-Bridge'): + pass + elif line.startswith('Pre-Coda'): + pass + elif line.startswith('Unbekannt'): + pass + elif line.startswith('Unknown'): + pass