diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index f012e59b..16517dd4 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -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)