fix custom copy

This commit is contained in:
Tim Bentley 2019-08-04 08:53:56 +01:00
parent df2ace541e
commit a8af8a8d18

View File

@ -349,7 +349,7 @@ class CustomMediaItem(MediaManagerItem):
custom.credits = '' custom.credits = ''
custom_xml = CustomXMLBuilder() custom_xml = CustomXMLBuilder()
for (idx, slide) in enumerate(item.slides): for (idx, slide) in enumerate(item.slides):
custom_xml.add_verse_to_lyrics('custom', str(idx + 1), slide['raw_slide']) custom_xml.add_verse_to_lyrics('custom', str(idx + 1), slide['text'])
custom.text = str(custom_xml.extract_xml(), 'utf-8') custom.text = str(custom_xml.extract_xml(), 'utf-8')
self.plugin.db_manager.save_object(custom) self.plugin.db_manager.save_object(custom)
self.on_search_text_button_clicked() self.on_search_text_button_clicked()