mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
use the user changes function to register for user changes at startup
This commit is contained in:
parent
9903b8d53d
commit
368c474ce9
1 changed files with 4 additions and 2 deletions
|
@ -79,13 +79,15 @@ class LibrarySync(threading.Thread):
|
||||||
results = du.downloadUrl(url)
|
results = du.downloadUrl(url)
|
||||||
utils.logMsg("Sync Database", "Incfemental Sync Changes : " + str(results), 0)
|
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"]
|
removedItems = results["ItemsRemoved"]
|
||||||
|
userChanges = results["UserDataChanged"]
|
||||||
|
|
||||||
WINDOW.setProperty("startup", "done")
|
WINDOW.setProperty("startup", "done")
|
||||||
|
|
||||||
LibrarySync().remove_items(removedItems)
|
LibrarySync().remove_items(removedItems)
|
||||||
LibrarySync().update_items(changedItems)
|
LibrarySync().update_items(changedItems)
|
||||||
|
LibrarySync().user_data_update(userChanges)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue