pull/351/head
meisnate12 3 years ago
parent bd4c59f286
commit 01ac6d713e

@ -1607,12 +1607,20 @@ class CollectionBuilder:
items = self.library.get_collection_items(self.obj, self.smart_label_collection)
else:
items = []
logger.info("")
util.separator(f"Items Found for {self.name} Collection", space=False, border=False)
logger.info("")
for rk in self.rating_keys:
try:
items.append(self.fetch_item(rk))
item = self.fetch_item(rk)
logger.info(f"{item.title} (Rating Key: {rk})")
items.append(item)
except Failed as e:
logger.error(e)
logger.info("")
util.separator(f"Updating Details of the Items in {self.name} Collection", space=False, border=False)
logger.info("")
overlay = None
overlay_folder = None
rating_keys = []

@ -733,6 +733,8 @@ class Plex:
_item_tags = []
_add = [f"{t[:1].upper()}{t[1:]}" for t in _add_tags + _sync_tags if t.lower() not in _item_tags]
_remove = [t for t in _item_tags if (_sync_tags and t not in _sync_tags) or t in _remove_tags]
logger.debug(_add)
logger.debug(_remove)
if _add:
updated = True
self.query_data(getattr(obj, f"add{attr.capitalize()}"), _add)

Loading…
Cancel
Save