From 58af9ac4532fff82932cbcb9fc912bc4252cbdc0 Mon Sep 17 00:00:00 2001 From: blaspheme-ship-it Date: Wed, 18 Dec 2024 07:02:42 +0100 Subject: [PATCH] [tagSceneswithPerfTags] add check before processing scene (#475) --- plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py b/plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py index db00e12d..ad0aa1f2 100644 --- a/plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py +++ b/plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py @@ -63,8 +63,10 @@ def processScene(scene): elif "hookContext" in json_input["args"]: id = json_input["args"]["hookContext"]["id"] if ( - json_input["args"]["hookContext"]["type"] == "Scene.Update.Post" - or "Scene.Create.Post" + ( + json_input["args"]["hookContext"]["type"] == "Scene.Update.Post" + or "Scene.Create.Post" + ) and len(json_input["args"]["hookContext"]["inputFields"]) > 2 ): scene = stash.find_scene(id) processScene(scene)