From fb0178a020b254ca8b2247254ac08bf4f7e32f3b Mon Sep 17 00:00:00 2001 From: quickmic Date: Sun, 12 Jan 2025 15:51:39 +0100 Subject: [PATCH] 11.1.18, review changelog for details --- addon.xml | 2 +- changelog.txt | 6 ++++++ core/common.py | 4 ++-- database/library.py | 6 +++--- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/addon.xml b/addon.xml index ec7988f4b..aa5f1b092 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/changelog.txt b/changelog.txt index a7670804c..0d1d0d257 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,9 @@ +11.1.18 +============= +Fix movie update issue + + + 11.1.17 ============= fix reset cache for playlists on updates diff --git a/core/common.py b/core/common.py index 2769e076c..8e87126c5 100644 --- a/core/common.py +++ b/core/common.py @@ -923,9 +923,9 @@ def delete_ContentItemReferences(Item, SQLs, KodiType, isSpecial=False): SQLs["video"].common_db.delete_artwork(Item['KodiFileId'], "videoversion") # delete videoversions artwork if isSpecial: - SQLs["video"].delete_videoversion_by_KodiId_notKodiFileId_KodiType(Item['KodiItemId'], Item['KodiFileId'], KodiType) # delete videoversions - else: SQLs["video"].delete_videoversion(Item['KodiItemId'], KodiType) + else: + SQLs["video"].delete_videoversion_by_KodiId_notKodiFileId_KodiType(Item['KodiItemId'], Item['KodiFileId'], KodiType) # delete videoversions SQLs['emby'].remove_item_by_parentid(Item['Id'], "Video", Item['LibraryId']) # delete reference specials diff --git a/database/library.py b/database/library.py index a55993f7f..935971002 100644 --- a/database/library.py +++ b/database/library.py @@ -374,15 +374,15 @@ def worker_update(self, IncrementalSync): UpdateItems, UpdateItemsCount = embydb.get_UpdateItem() RemoveItems = embydb.get_RemoveItem() dbio.DBCloseRO(self.EmbyServer.ServerData['ServerId'], WorkerName) + del embydb - # Rerun if removed items are added while waiting for updates + # Re-run if removed items are added while waiting for updates if RemoveItems: xbmc.log("EMBY.database.library: Worker update, removed items found, trigger removal", 0) # LOGDEBUG self.worker_remove(IncrementalSync) + # Process updates with LockLowPriorityWorkers: - - del embydb xbmc.log(f"EMBY.database.library: -->[ worker update started ] queue size: {UpdateItemsCount}", 0) # LOGDEBUG if not UpdateItemsCount: