From cf427a0a235d209de1cc51019db7ec433e7a2d00 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 11 Oct 2023 13:42:34 -0400 Subject: [PATCH] [10] fix smart collections --- VERSION | 2 +- modules/builder.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index d062f30b..2f466777 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.1-develop9 +1.19.1-develop10 diff --git a/modules/builder.py b/modules/builder.py index 61da21c9..e17ecac2 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -1125,10 +1125,10 @@ class CollectionBuilder: self.beginning_count = len(self.library.fetchItems(check_url)) if self.obj: self.exists = True + col_items = self.library.get_collection_items(self.obj, self.smart_label_collection) + self.beginning_count = len(col_items) if self.smart or self.playlist else self.obj.childCount if self.sync or self.playlist: - self.remove_item_map = {i.ratingKey: i for i in self.library.get_collection_items(self.obj, self.smart_label_collection)} - if not self.smart: - self.beginning_count = len(self.remove_item_map) if self.playlist else self.obj.childCount + self.remove_item_map = {i.ratingKey: i for i in col_items} else: self.obj = None if self.sync: