From 889b6094d9d0ee620c2c2c1a10a8943b5aa74106 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 17 Jan 2019 17:49:00 +0100 Subject: [PATCH] Ignore playstate updates for full sync time stamps croneter committed --- resources/lib/library_sync/full_sync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/library_sync/full_sync.py b/resources/lib/library_sync/full_sync.py index 11cc8e73..46f9ac29 100644 --- a/resources/lib/library_sync/full_sync.py +++ b/resources/lib/library_sync/full_sync.py @@ -320,6 +320,9 @@ class FullSync(common.fullsync_mixin): if self.isCanceled() or not self.addupdate_section(section): return False common.update_kodi_library(video=True, music=True) + if self.successful: + # Set timestamp for next sync - neglecting playstates! + utils.settings('lastfullsync', value=str(int(self.current_sync))) # SYNC PLAYSTATE of ALL items (otherwise we won't pick up on items that # were set to unwatched). Also mark all items on the PMS to be able # to delete the ones still in Kodi @@ -407,8 +410,6 @@ class FullSync(common.fullsync_mixin): self.dialog.close() if self.threader: self.threader.shutdown() - if self.successful: - utils.settings('lastfullsync', value=str(int(self.current_sync))) if self.callback: self.callback(self.successful) LOG.info('Done full_sync')