From 975ce56b181bc4aaf714f2444b886f32e0c8e769 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 18 Aug 2021 12:13:41 -0400 Subject: [PATCH] reload before looking at labels --- modules/plex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/plex.py b/modules/plex.py index e677cb1b..8667c140 100644 --- a/modules/plex.py +++ b/modules/plex.py @@ -439,6 +439,7 @@ class Plex: if overlay is not None: overlay_name, overlay_folder, overlay_image, temp_image = overlay + self.reload(item) item_labels = {item_tag.tag.lower(): item_tag.tag for item_tag in item.labels} for item_label in item_labels: if item_label.endswith(" overlay") and item_label != f"{overlay_name.lower()} overlay": @@ -752,6 +753,7 @@ class Plex: _remove_tags = [t.lower() for t in remove_tags] if remove_tags else [] _sync_tags = [t.lower() for t in sync_tags] if sync_tags else [] try: + self.reload(obj) _item_tags = [item_tag.tag.lower() for item_tag in getattr(obj, key)] except BadRequest: _item_tags = []