fix for missing title field

This commit is contained in:
rimach 2010-12-07 23:47:02 +01:00
parent 9ef1813a8e
commit 44b0574778
1 changed files with 4 additions and 1 deletions

View File

@ -99,13 +99,16 @@ class SongBeamerImport(SongImport):
self.songData = infile.readlines()
else:
return False
self.title = self.file_name.split('.sng')[0]
self.read_verse = False
for line in self.songData:
line = line.strip()
if line.startswith('#'):
log.debug(u'find tag: %s' % line)
if not self.parse_tags(line):
return False
elif line.startswith('---'):
elif line.startswith('---') or \
line.startswith('--'):
log.debug(u'find ---')
if len(self.current_verse) > 0:
self.add_verse(self.current_verse,