From 368c474ce91c6ed0dcaf7e3c7944ae7d68a7bcbe Mon Sep 17 00:00:00 2001 From: shaun Date: Sat, 1 Aug 2015 10:53:33 +1000 Subject: [PATCH] use the user changes function to register for user changes at startup --- resources/lib/LibrarySync.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index 6e2361bb..8b126108 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -79,13 +79,15 @@ class LibrarySync(threading.Thread): results = du.downloadUrl(url) utils.logMsg("Sync Database", "Incfemental Sync Changes : " + str(results), 0) - changedItems = results["ItemsUpdated"] + results["ItemsAdded"] + results["UserDataChanged"] + changedItems = results["ItemsUpdated"] + results["ItemsAdded"] removedItems = results["ItemsRemoved"] + userChanges = results["UserDataChanged"] WINDOW.setProperty("startup", "done") LibrarySync().remove_items(removedItems) - LibrarySync().update_items(changedItems) + LibrarySync().update_items(changedItems) + LibrarySync().user_data_update(userChanges) return True