mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
reload before looking at labels
This commit is contained in:
parent
13849176e6
commit
975ce56b18
1 changed files with 2 additions and 0 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue