[Video Chapter Markers] Fix on update trigger (#575)

This commit is contained in:
you-cant-see-me
2025-06-13 06:24:59 +01:00
committed by GitHub
parent 2c2e8a26de
commit 6e350eadbb
2 changed files with 8 additions and 8 deletions

View File

@@ -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)
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)

View File

@@ -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
- Scene.Update.Post