forked from openlp/openlp
fixed easyslides importer
This commit is contained in:
parent
678bb3e2be
commit
f37748ba51
@ -54,7 +54,7 @@ class EasySlidesImport(SongImport):
|
|||||||
log.info(u'Importing EasySlides XML file %s', self.import_source)
|
log.info(u'Importing EasySlides XML file %s', self.import_source)
|
||||||
parser = etree.XMLParser(remove_blank_text=True)
|
parser = etree.XMLParser(remove_blank_text=True)
|
||||||
parsed_file = etree.parse(self.import_source, parser)
|
parsed_file = etree.parse(self.import_source, parser)
|
||||||
xml = unicode(etree.tostring(parsed_file))
|
xml = etree.tostring(parsed_file).decode()
|
||||||
song_xml = objectify.fromstring(xml)
|
song_xml = objectify.fromstring(xml)
|
||||||
self.import_wizard.progress_bar.setMaximum(len(song_xml.Item))
|
self.import_wizard.progress_bar.setMaximum(len(song_xml.Item))
|
||||||
for song in song_xml.Item:
|
for song in song_xml.Item:
|
||||||
|
Loading…
Reference in New Issue
Block a user