@@ -44,11 +44,11 @@ def __init__(self, params, ltype, rule, attrib, pathrule, orderby):
4444 self .PATHRULE = pathrule
4545 self .ORDERBY = orderby
4646 # If there are no custom library nodes in the profile directory, copy them from the Kodi install
47- targetDir = os .path .join ( xbmc .translatePath ( "special://profile" ), "library" , ltype )
47+ targetDir = os .path .join ( xbmcvfs .translatePath ( "special://profile" ), "library" , ltype )
4848 if True :
4949 if not os .path .exists ( targetDir ):
5050 xbmcvfs .mkdirs ( targetDir )
51- originDir = os .path .join ( xbmc .translatePath ( "special://xbmc" ), "system" , "library" , ltype )
51+ originDir = os .path .join ( xbmcvfs .translatePath ( "special://xbmc" ), "system" , "library" , ltype )
5252 dirs , files = xbmcvfs .listdir ( originDir )
5353 self .copyNode ( dirs , files , targetDir , originDir )
5454 else :
@@ -189,7 +189,7 @@ def __init__(self, params, ltype, rule, attrib, pathrule, orderby):
189189 if selected != - 1 and selected != 0 :
190190 try :
191191 # Copy those defaults across
192- originDir = os .path .join ( xbmc .translatePath ( "special://xbmc" ), "system" , "library" , self .ltype , defaultValues [ selected ] )
192+ originDir = os .path .join ( xbmcvfs .translatePath ( "special://xbmc" ), "system" , "library" , self .ltype , defaultValues [ selected ] )
193193 dirs , files = xbmcvfs .listdir ( originDir )
194194 for file in files :
195195 if file != "index.xml" :
0 commit comments