fixed error in sources detection

This commit is contained in:
Marcel van der Veldt 2015-03-14 19:37:52 +01:00
parent 2f53b9b026
commit 3c8db3fe94

View file

@ -45,16 +45,16 @@ def checkKodiSources():
addon = xbmcaddon.Addon(id='plugin.video.mb3sync') addon = xbmcaddon.Addon(id='plugin.video.mb3sync')
addondir = xbmc.translatePath( addon.getAddonInfo('profile') ) addondir = xbmc.translatePath( addon.getAddonInfo('profile') )
dataPath = os.path.join(addondir,"library\\") dataPath = os.path.join(addondir,"library\\")
movieLibrary = os.path.join(dataPath,'movies\\') movieLibrary = os.path.join(dataPath,'movies')
tvLibrary = os.path.join(dataPath,'tvshows\\') tvLibrary = os.path.join(dataPath,'tvshows')
rebootRequired = False rebootRequired = False
if not xbmcvfs.exists(dataPath): if not xbmcvfs.exists(dataPath + "\\"):
xbmcvfs.mkdir(dataPath) xbmcvfs.mkdir(dataPath)
if not xbmcvfs.exists(movieLibrary): if not xbmcvfs.exists(movieLibrary + "\\"):
xbmcvfs.mkdir(movieLibrary) xbmcvfs.mkdir(movieLibrary)
rebootRequired = addKodiSource("mediabrowser_movies",movieLibrary,"movies") rebootRequired = addKodiSource("mediabrowser_movies",movieLibrary,"movies")
if not xbmcvfs.exists(tvLibrary): if not xbmcvfs.exists(tvLibrary + "\\"):
xbmcvfs.mkdir(tvLibrary) xbmcvfs.mkdir(tvLibrary)
rebootRequired = addKodiSource("mediabrowser_tvshows",tvLibrary,"tvshows") rebootRequired = addKodiSource("mediabrowser_tvshows",tvLibrary,"tvshows")