~suutari-olli/openlp/click-slide-to-go-live-from-blank

« back to all changes in this revision

Viewing changes to openlp/plugins/songs/lib/importers/wordsofworship.py

trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
                song_data = open(source, 'rb')
108
108
                if song_data.read(19).decode() != 'WoW File\nSong Words':
109
109
                    self.log_error(source,
110
 
                                   str(translate('SongsPlugin.WordsofWorshipSongImport',
111
 
                                                 'Invalid Words of Worship song file. Missing "%s" header.'
112
 
                                                 % 'WoW File\\nSong Words')))
 
110
                                   translate('SongsPlugin.WordsofWorshipSongImport',
 
111
                                             'Invalid Words of Worship song file. Missing "%s" header.')
 
112
                                   % 'WoW File\\nSong Words')
113
113
                    continue
114
114
                # Seek to byte which stores number of blocks in the song
115
115
                song_data.seek(56)
117
117
                song_data.seek(66)
118
118
                if song_data.read(16).decode() != 'CSongDoc::CBlock':
119
119
                    self.log_error(source,
120
 
                                   str(translate('SongsPlugin.WordsofWorshipSongImport',
121
 
                                                 'Invalid Words of Worship song file. Missing "%s" '
122
 
                                                 'string.' % 'CSongDoc::CBlock')))
 
120
                                   translate('SongsPlugin.WordsofWorshipSongImport',
 
121
                                             'Invalid Words of Worship song file. Missing "%s" string.')
 
122
                                   % 'CSongDoc::CBlock')
123
123
                    continue
124
124
                # Seek to the beginning of the first block
125
125
                song_data.seek(82)