From 01ac6d713e3dcd3a486999a57073d888ce6b40f3 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 5 Aug 2021 14:55:39 -0400 Subject: [PATCH] add debug --- modules/builder.py | 10 +++++++++- modules/plex.py | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/builder.py b/modules/builder.py index 403627f6..5706e780 100644 --- a/modules/builder.py +++ b/modules/builder.py @@ -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 = [] diff --git a/modules/plex.py b/modules/plex.py index a5c57216..71363ff7 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -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)