Skip to content

Commit

Permalink
Merge pull request #562 from quickmic/next-gen-dev-python3
Browse files Browse the repository at this point in the history
11.1.18, review changelog for details
  • Loading branch information
quickmic authored Jan 12, 2025
2 parents f8e36bd + fb0178a commit ff3c405
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='UTF-8' standalone="yes"?>
<addon id="plugin.service.emby-next-gen" name="Emby for Kodi Next Gen" version="11.1.17" provider-name="quickmic">
<addon id="plugin.service.emby-next-gen" name="Emby for Kodi Next Gen" version="11.1.18" provider-name="quickmic">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.dateutil" version="2.8.1" />
Expand Down
6 changes: 6 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
11.1.18
=============
Fix movie update issue



11.1.17
=============
fix reset cache for playlists on updates
Expand Down
4 changes: 2 additions & 2 deletions core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions database/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ff3c405

Please sign in to comment.