mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +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')
|
||||
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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue