Fix settings not being picked up correctly
This commit is contained in:
parent
2cd00f21b7
commit
344e4337e1
1 changed files with 2 additions and 4 deletions
|
@ -1477,11 +1477,9 @@ class LibrarySync(Thread):
|
|||
stopped = self.stopped
|
||||
suspended = self.suspended
|
||||
installSyncDone = self.installSyncDone
|
||||
background_sync = state.BACKGROUND_SYNC
|
||||
fullSync = self.fullSync
|
||||
processMessage = self.processMessage
|
||||
processItems = self.processItems
|
||||
FULL_SYNC_INTERVALL = state.FULL_SYNC_INTERVALL
|
||||
lastSync = 0
|
||||
lastTimeSync = 0
|
||||
lastProcessing = 0
|
||||
|
@ -1599,7 +1597,7 @@ class LibrarySync(Thread):
|
|||
now = unix_timestamp()
|
||||
# Standard syncs - don't force-show dialogs
|
||||
self.force_dialog = False
|
||||
if (now - lastSync > FULL_SYNC_INTERVALL and
|
||||
if (now - lastSync > state.FULL_SYNC_INTERVALL and
|
||||
not self.xbmcplayer.isPlaying()):
|
||||
lastSync = now
|
||||
log.info('Doing scheduled full library scan')
|
||||
|
@ -1623,7 +1621,7 @@ class LibrarySync(Thread):
|
|||
self.syncPMStime()
|
||||
window('plex_dbScan', clear=True)
|
||||
state.DB_SCAN = False
|
||||
elif background_sync:
|
||||
elif state.BACKGROUND_SYNC:
|
||||
# Check back whether we should process something
|
||||
# Only do this once every while (otherwise, potentially
|
||||
# many screen refreshes lead to flickering)
|
||||
|
|
Loading…
Reference in a new issue