Force a sync on startup even if Kodi is playing something

- Fixes #482
This commit is contained in:
croneter 2018-06-03 13:48:00 +02:00
parent f9121d281c
commit 0486934d81

View file

@ -1585,6 +1585,9 @@ class LibrarySync(Thread):
state.DB_SCAN = True state.DB_SCAN = True
window('plex_dbScan', value="true") window('plex_dbScan', value="true")
LOG.info('Doing initial sync on Kodi startup') LOG.info('Doing initial sync on Kodi startup')
if state.SUSPEND_SYNC:
LOG.warning('Forcing startup sync even if Kodi is playing')
state.SUSPEND_SYNC = False
if self.full_sync(): if self.full_sync():
initial_sync_done = True initial_sync_done = True
last_sync = utils.unix_timestamp() last_sync = utils.unix_timestamp()