mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix sources.xml verification
This commit is contained in:
parent
3880c39177
commit
3e4d590617
1 changed files with 4 additions and 1 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue