From 6ff953df556b487007ef2daa09ccb956212b3682 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Sun, 2 Aug 2015 03:59:41 -0500 Subject: [PATCH] Fix error --- resources/lib/LibrarySync.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index e99ad275..7d91a129 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -57,8 +57,14 @@ class LibrarySync(threading.Thread): className = self.__class__.__name__ utils.logMsg("%s %s" % (self.addonName, className), msg, int(lvl)) - def FullLibrarySync(self,manualRun=False): + def FullLibrarySync(self,manualRun=False): + addon = xbmcaddon.Addon(id='plugin.video.emby') + startupDone = WINDOW.getProperty("startup") == "done" + syncInstallRunDone = addon.getSetting("SyncInstallRunDone") == "true" + performMusicSync = addon.getSetting("enableMusicSync") == "true" + dbSyncIndication = addon.getSetting("dbSyncIndication") == "true" + ### BUILD VIDEO NODES LISTING ### VideoNodes().buildVideoNodesListing() ### CREATE SOURCES ### @@ -66,13 +72,7 @@ class LibrarySync(threading.Thread): # Only create sources once self.logMsg("Sources.xml created.", 0) utils.createSources() - addon.setSetting("Sources", "true") - - addon = xbmcaddon.Addon(id='plugin.video.emby') - startupDone = WINDOW.getProperty("startup") == "done" - syncInstallRunDone = addon.getSetting("SyncInstallRunDone") == "true" - performMusicSync = addon.getSetting("enableMusicSync") == "true" - dbSyncIndication = addon.getSetting("dbSyncIndication") == "true" + addon.setSetting("Sources", "true") # just do a incremental sync if that is what is required if(addon.getSetting("useIncSync") == "true" and addon.getSetting("SyncInstallRunDone") == "true") :