mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
fixed default nodes and create node dirs if not existing
This commit is contained in:
parent
dd54cb27f3
commit
f56b154a83
1 changed files with 9 additions and 0 deletions
|
@ -1035,6 +1035,15 @@ class WriteKodiDB():
|
||||||
def addVideoNodesForTag(self, tagname, type):
|
def addVideoNodesForTag(self, tagname, type):
|
||||||
|
|
||||||
utils.logMsg("addVideoNodesForTag", "Creating nodes for tag: " + tagname)
|
utils.logMsg("addVideoNodesForTag", "Creating nodes for tag: " + tagname)
|
||||||
|
|
||||||
|
# the library path doesn't exist on all systems
|
||||||
|
if not xbmcvfs.exists("special://userdata/library/"):
|
||||||
|
xbmcvfs.mkdir("special://userdata/library")
|
||||||
|
if not xbmcvfs.exists("special://userdata/library/video/"):
|
||||||
|
#we need to copy over the default items
|
||||||
|
import shutil
|
||||||
|
shutil.copytree(xbmc.translatePath("special://xbmc/system/library/video"), xbmc.translatePath("special://userdata/library/video"))
|
||||||
|
|
||||||
libraryPath = xbmc.translatePath("special://userdata/library/video/emby/")
|
libraryPath = xbmc.translatePath("special://userdata/library/video/emby/")
|
||||||
|
|
||||||
if type == "movie":
|
if type == "movie":
|
||||||
|
|
Loading…
Reference in a new issue