mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
[11] fix smart collections
This commit is contained in:
parent
cf427a0a23
commit
f6d8146fc0
2 changed files with 5 additions and 5 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
1.19.1-develop10
|
||||
1.19.1-develop11
|
||||
|
|
|
@ -1122,13 +1122,13 @@ class CollectionBuilder:
|
|||
if check_url != self.library.smart_filter(self.obj):
|
||||
self.library.update_smart_collection(self.obj, check_url)
|
||||
logger.info(f"Detail: Smart Collection updated to {check_url}")
|
||||
self.beginning_count = len(self.library.fetchItems(check_url))
|
||||
self.beginning_count = len(self.library.fetchItems(check_url)) if check_url else 0
|
||||
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 col_items}
|
||||
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
|
||||
else:
|
||||
self.obj = None
|
||||
if self.sync:
|
||||
|
|
Loading…
Reference in a new issue