From 5b5026cfb71e07ee467f20a02c032904c2790f55 Mon Sep 17 00:00:00 2001 From: Austin Mroz Date: Wed, 17 Apr 2024 09:48:03 -0500 Subject: [PATCH] Fix LoadAudioUpload IS_CHANGED/VALIDATE_INPUTS I gave incorrect information in #192. IS_CHANGED is used for optional inputs. This raised a minor issue in needing to resolve the selected autio to a file path which is fixed here. --- videohelpersuite/nodes.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/videohelpersuite/nodes.py b/videohelpersuite/nodes.py index 094f165..3652212 100644 --- a/videohelpersuite/nodes.py +++ b/videohelpersuite/nodes.py @@ -489,9 +489,6 @@ class LoadAudioUpload: "start_time": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01}), "duration": ("FLOAT" , {"default": 0, "min": 0, "max": 10000000, "step": 0.01}), }, - "hidden": { - "unique_id": "UNIQUE_ID" - }, } CATEGORY = "Video Helper Suite 🎥🅥🅗🅢" @@ -510,11 +507,13 @@ class LoadAudioUpload: return (lambda : audio,) @classmethod - def IS_CHANGED(s, audio_file, start_time, duration): + def IS_CHANGED(s, audio, start_time, duration): + audio_file = folder_paths.get_annotated_filepath(audio.strip("\"")) return hash_path(audio_file) @classmethod - def VALIDATE_INPUTS(s, audio_file, **kwargs): + def VALIDATE_INPUTS(s, audio, **kwargs): + audio_file = folder_paths.get_annotated_filepath(audio.strip("\"")) return validate_path(audio_file, allow_none=True) class PruneOutputs: