This commit is contained in:
Samuel Mehrbrodt 2014-06-11 07:26:29 +02:00
parent bc6eca2dec
commit 7f3f866a00

View File

@ -64,14 +64,12 @@ class EasyWorshipSongImport(SongImport):
def doImport(self): def doImport(self):
# Open the DB and MB files if they exist # Open the DB and MB files if they exist
import_source_mb = self.importSource.replace('.DB', '.MB') import_source_mb = self.importSource.replace('.DB', '.MB').replace('.db', '.mb')
.replace('.db', '.mb')
if not os.path.isfile(self.importSource): if not os.path.isfile(self.importSource):
self.logError(self.importSource, translate( self.logError(self.importSource, translate(
'SongsPlugin.EasyWorshipSongImport', 'SongsPlugin.EasyWorshipSongImport',
'This file does not exist.')) 'This file does not exist.'))
return return
return
if not os.path.isfile(import_source_mb): if not os.path.isfile(import_source_mb):
self.logError(self.importSource, translate( self.logError(self.importSource, translate(
'SongsPlugin.EasyWorshipSongImport', 'SongsPlugin.EasyWorshipSongImport',