add debug

This commit is contained in:
meisnate12 2021-08-05 14:55:39 -04:00
parent bd4c59f286
commit 01ac6d713e
2 changed files with 11 additions and 1 deletions

View file

@ -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 = []

View file

@ -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)