don't add the emby videonodes in a parent folder because it causes issues with video node editor and skinshortcuts addons

This commit is contained in:
Marcel van der Veldt 2015-05-03 23:50:36 +02:00
parent f56b154a83
commit 5b03f6549d

View file

@ -1053,20 +1053,8 @@ class WriteKodiDB():
else:
return
if not xbmcvfs.exists(libraryPath):
#create root node
xbmcvfs.mkdir(libraryPath)
nodefile = os.path.join(libraryPath, "index.xml")
root = Element("node", {"order":"1"})
SubElement(root, "label").text = "Emby"
SubElement(root, "icon").text = "DefaultMovies.png"
try:
ET.ElementTree(root).write(nodefile, xml_declaration=True)
except:
ET.ElementTree(root).write(nodefile)
#tagpath
libraryPath = xbmc.translatePath("special://userdata/library/video/emby/%s/" %tagname)
libraryPath = xbmc.translatePath("special://userdata/library/video/%s/Emby - " %tagname)
if not xbmcvfs.exists(libraryPath):
#create tag node - index