Fix error

This commit is contained in:
angelblue05 2015-08-02 03:59:41 -05:00
parent 6df36cd6a3
commit 6ff953df55

View file

@ -59,6 +59,12 @@ class LibrarySync(threading.Thread):
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 ### ### BUILD VIDEO NODES LISTING ###
VideoNodes().buildVideoNodesListing() VideoNodes().buildVideoNodesListing()
### CREATE SOURCES ### ### CREATE SOURCES ###
@ -68,12 +74,6 @@ class LibrarySync(threading.Thread):
utils.createSources() utils.createSources()
addon.setSetting("Sources", "true") 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"
# just do a incremental sync if that is what is required # just do a incremental sync if that is what is required
if(addon.getSetting("useIncSync") == "true" and addon.getSetting("SyncInstallRunDone") == "true") : if(addon.getSetting("useIncSync") == "true" and addon.getSetting("SyncInstallRunDone") == "true") :
utils.logMsg("Sync Database", "Using incremental sync instead of full sync useIncSync=True)", 0) utils.logMsg("Sync Database", "Using incremental sync instead of full sync useIncSync=True)", 0)