mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
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:
parent
f56b154a83
commit
5b03f6549d
1 changed files with 2 additions and 14 deletions
|
@ -1052,21 +1052,9 @@ class WriteKodiDB():
|
||||||
type = "tvshows"
|
type = "tvshows"
|
||||||
else:
|
else:
|
||||||
return
|
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
|
#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):
|
if not xbmcvfs.exists(libraryPath):
|
||||||
#create tag node - index
|
#create tag node - index
|
||||||
|
|
Loading…
Reference in a new issue