mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-06 08:16:13 +00:00
dont do a lib scan or clean until the sync is full done
This commit is contained in:
parent
46f2a3ffdb
commit
9c98f713e7
2 changed files with 17 additions and 10 deletions
14
service.py
14
service.py
|
@ -6,14 +6,11 @@ import threading
|
|||
import json
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
addonSettings = xbmcaddon.Addon(id='plugin.video.mb3sync')
|
||||
cwd = addonSettings.getAddonInfo('path')
|
||||
BASE_RESOURCE_PATH = xbmc.translatePath( os.path.join( cwd, 'resources', 'lib' ) )
|
||||
sys.path.append(BASE_RESOURCE_PATH)
|
||||
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
|
||||
import KodiMonitor
|
||||
import Utils as utils
|
||||
from LibrarySync import LibrarySync
|
||||
|
@ -105,6 +102,17 @@ class Service():
|
|||
cur_seconds_incrsync = interval_IncrementalSync - 10
|
||||
else:
|
||||
cur_seconds_incrsync += 1
|
||||
|
||||
# check if we need to run lib updates
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
if(WINDOW.getProperty("cleanNeeded") == "true"):
|
||||
xbmc.executebuiltin("CleanLibrary(video)")
|
||||
WINDOW.clearProperty("cleanNeeded")
|
||||
|
||||
if(WINDOW.getProperty("updateNeeded") == "true"):
|
||||
xbmc.executebuiltin("UpdateLibrary(video)")
|
||||
WINDOW.clearProperty("updateNeeded")
|
||||
|
||||
else:
|
||||
xbmc.log("Not authenticated yet")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue