diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 27df195d..8c6623f3 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -604,6 +604,11 @@ class LibrarySync(threading.Thread): log.info("Removing views: %s" % current_views) for view in current_views: 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):