From 3e4d590617985b76903a2ebcd7617b18166b178a Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sat, 22 Sep 2018 02:40:29 -0500 Subject: [PATCH] Fix sources.xml verification --- resources/lib/helper/xmls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/helper/xmls.py b/resources/lib/helper/xmls.py index 1614ca47..18d4367c 100644 --- a/resources/lib/helper/xmls.py +++ b/resources/lib/helper/xmls.py @@ -52,7 +52,10 @@ def sources(): etree.SubElement(source, 'allowsharing').text = "true" try: - files = xml.find('files') or etree.SubElement(xml, 'files') + files = xml.find('files') + + if not files: + files = etree.SubElement(xml, 'files') for source in xml.findall('.//path'): if source.text == 'http://kodi.emby.media':