mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Remove view update
When view is removed, also remove child items from library
This commit is contained in:
parent
da3d2e014b
commit
e503b87c35
1 changed files with 5 additions and 0 deletions
|
@ -604,6 +604,11 @@ class LibrarySync(threading.Thread):
|
||||||
log.info("Removing views: %s" % current_views)
|
log.info("Removing views: %s" % current_views)
|
||||||
for view in current_views:
|
for view in current_views:
|
||||||
emby_db.removeView(view)
|
emby_db.removeView(view)
|
||||||
|
# Remove any items that belongs to the old view
|
||||||
|
items = emby_db.get_item_by_view(view)
|
||||||
|
items = [i[0] for i in items] # Convert list of tuple to list
|
||||||
|
self.triage_items("remove", items)
|
||||||
|
|
||||||
|
|
||||||
def movies(self, embycursor, kodicursor, pdialog):
|
def movies(self, embycursor, kodicursor, pdialog):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue