From 605472f98364718cf28a421ebe029af9f4caaf72 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Mon, 17 Sep 2018 00:47:06 -0500 Subject: [PATCH] Fix blank files sources --- resources/lib/helper/xmls.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/helper/xmls.py b/resources/lib/helper/xmls.py index 4809700a..d7e22605 100644 --- a/resources/lib/helper/xmls.py +++ b/resources/lib/helper/xmls.py @@ -53,6 +53,9 @@ def sources(): files = xml.find('files') + if files is None: + files = etree.SubElement(xml, 'files') + for source in xml.findall('.//path'): if source.text == 'http://kodi.emby.media': break