From 3c8db3fe94cc691a9973babae68f8831d968dae5 Mon Sep 17 00:00:00 2001 From: Marcel van der Veldt Date: Sat, 14 Mar 2015 19:37:52 +0100 Subject: [PATCH] fixed error in sources detection --- resources/lib/Utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lib/Utils.py b/resources/lib/Utils.py index a39b6189..39e4b60d 100644 --- a/resources/lib/Utils.py +++ b/resources/lib/Utils.py @@ -45,16 +45,16 @@ def checkKodiSources(): addon = xbmcaddon.Addon(id='plugin.video.mb3sync') addondir = xbmc.translatePath( addon.getAddonInfo('profile') ) dataPath = os.path.join(addondir,"library\\") - movieLibrary = os.path.join(dataPath,'movies\\') - tvLibrary = os.path.join(dataPath,'tvshows\\') + movieLibrary = os.path.join(dataPath,'movies') + tvLibrary = os.path.join(dataPath,'tvshows') rebootRequired = False - if not xbmcvfs.exists(dataPath): + if not xbmcvfs.exists(dataPath + "\\"): xbmcvfs.mkdir(dataPath) - if not xbmcvfs.exists(movieLibrary): + if not xbmcvfs.exists(movieLibrary + "\\"): xbmcvfs.mkdir(movieLibrary) rebootRequired = addKodiSource("mediabrowser_movies",movieLibrary,"movies") - if not xbmcvfs.exists(tvLibrary): + if not xbmcvfs.exists(tvLibrary + "\\"): xbmcvfs.mkdir(tvLibrary) rebootRequired = addKodiSource("mediabrowser_tvshows",tvLibrary,"tvshows")