[11] fix smart_label counts

This commit is contained in:
meisnate12 2022-11-11 15:51:17 -05:00
parent 2b90478ea7
commit 469bde8b8c
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1 @@
1.18.0-develop10
1.18.0-develop11

View file

@ -817,6 +817,8 @@ class CollectionBuilder:
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)}
self.beginning_count = len(self.remove_item_map) if self.playlist else self.obj.childCount
elif self.smart_label_collection:
self.beginning_count = len(self.library.search(label=self.name))
else:
self.obj = None
self.sync = False