minor detail changed
This commit is contained in:
parent
4d0d863a42
commit
0cacd3ee87
1 changed files with 5 additions and 1 deletions
|
@ -10,6 +10,7 @@ import xbmcvfs
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
#import common elementree because cElementree has issues with kodi
|
||||||
import xml.etree.ElementTree as etree
|
import xml.etree.ElementTree as etree
|
||||||
|
|
||||||
import Utils as utils
|
import Utils as utils
|
||||||
|
@ -37,6 +38,9 @@ class VideoNodes():
|
||||||
etree.SubElement(root, "icon").text = "special://home/addons/plugin.video.emby/icon.png"
|
etree.SubElement(root, "icon").text = "special://home/addons/plugin.video.emby/icon.png"
|
||||||
path = "library://video/Emby - %s/"%tagname
|
path = "library://video/Emby - %s/"%tagname
|
||||||
WINDOW.setProperty("Emby.nodes.%s.index" %str(windowPropId),path)
|
WINDOW.setProperty("Emby.nodes.%s.index" %str(windowPropId),path)
|
||||||
|
try:
|
||||||
|
etree.ElementTree(root).write(nodefile, xml_declaration=True)
|
||||||
|
except:
|
||||||
etree.ElementTree(root).write(nodefile)
|
etree.ElementTree(root).write(nodefile)
|
||||||
|
|
||||||
#create tag node - all items
|
#create tag node - all items
|
||||||
|
|
Loading…
Reference in a new issue