Fix sources.xml verification

This commit is contained in:
angelblue05 2018-09-22 02:40:29 -05:00
parent 3880c39177
commit 3e4d590617

View file

@ -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':