From f34900ae6e5ce5874005a3d433b31f2a46da56b9 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Wed, 13 Apr 2016 16:51:53 +0200 Subject: [PATCH] Sync Music playstates on full sync --- resources/lib/librarysync.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index a75bcff6..7cf84a1e 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1203,6 +1203,12 @@ class LibrarySync(Thread): self.GetAndProcessXMLs(itemType) self.logMsg("GetAndProcessXMLs for music %s completed" % kind, 1) + # Update viewstate for EVERY item + for view in views: + if self.threadStopped(): + return False + self.PlexUpdateWatched(view['id'], itemType) + # reset stuff self.allKodiElementsId = {} self.allPlexElementsId = {}