From 0486934d81b3cb4f65d97c841f80464cc9ab0ede Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 3 Jun 2018 13:48:00 +0200 Subject: [PATCH] Force a sync on startup even if Kodi is playing something - Fixes #482 --- resources/lib/librarysync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index d220e97b..6c67a5a2 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1585,6 +1585,9 @@ class LibrarySync(Thread): state.DB_SCAN = True window('plex_dbScan', value="true") 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(): initial_sync_done = True last_sync = utils.unix_timestamp()