From 6e350eadbb65e560668cbaddfb8d044af415a735 Mon Sep 17 00:00:00 2001 From: you-cant-see-me Date: Fri, 13 Jun 2025 06:24:59 +0100 Subject: [PATCH] [Video Chapter Markers] Fix on update trigger (#575) --- plugins/videoChapterMarkers/videoChapterMarkers.py | 12 ++++++------ plugins/videoChapterMarkers/videoChapterMarkers.yml | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/videoChapterMarkers/videoChapterMarkers.py b/plugins/videoChapterMarkers/videoChapterMarkers.py index 1484290..cb7f362 100644 --- a/plugins/videoChapterMarkers/videoChapterMarkers.py +++ b/plugins/videoChapterMarkers/videoChapterMarkers.py @@ -110,9 +110,9 @@ if "mode" in json_input["args"]: PLUGIN_ARGS = json_input["args"]["mode"] if "processAll" == PLUGIN_ARGS: processAll() - elif "hookContext" in json_input["args"]: - _id = json_input["args"]["hookContext"]["id"] - _type = json_input["args"]["hookContext"]["type"] - if _type == "Scene.Update.Post": - scene = stash.find_scene(_id) - processScene(scene) \ No newline at end of file +if "hookContext" in json_input["args"]: + _id = json_input["args"]["hookContext"]["id"] + _type = json_input["args"]["hookContext"]["type"] + if _type == "Scene.Update.Post": + scene = stash.find_scene(_id) + processScene(scene) diff --git a/plugins/videoChapterMarkers/videoChapterMarkers.yml b/plugins/videoChapterMarkers/videoChapterMarkers.yml index 4245b88..06d462c 100644 --- a/plugins/videoChapterMarkers/videoChapterMarkers.yml +++ b/plugins/videoChapterMarkers/videoChapterMarkers.yml @@ -1,6 +1,6 @@ name: Video Chapter Markers description: Create markers from chapter information embedded in video files -version: 1.0 +version: 1.1 url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/videoChapterMarkers exec: - python @@ -16,4 +16,4 @@ hooks: - name: Create Markers on Scene Update description: Extract chapters and create markers when a scene is updated triggeredBy: - - Scene.Update.Post \ No newline at end of file + - Scene.Update.Post