mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
fixed error in sources detection
This commit is contained in:
parent
2f53b9b026
commit
3c8db3fe94
1 changed files with 5 additions and 5 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue