Skip to content

Commit 6e350ea

Browse files
[Video Chapter Markers] Fix on update trigger (#575)
1 parent 2c2e8a2 commit 6e350ea

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

plugins/videoChapterMarkers/videoChapterMarkers.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ def processAll():
110110
PLUGIN_ARGS = json_input["args"]["mode"]
111111
if "processAll" == PLUGIN_ARGS:
112112
processAll()
113-
elif "hookContext" in json_input["args"]:
114-
_id = json_input["args"]["hookContext"]["id"]
115-
_type = json_input["args"]["hookContext"]["type"]
116-
if _type == "Scene.Update.Post":
117-
scene = stash.find_scene(_id)
118-
processScene(scene)
113+
if "hookContext" in json_input["args"]:
114+
_id = json_input["args"]["hookContext"]["id"]
115+
_type = json_input["args"]["hookContext"]["type"]
116+
if _type == "Scene.Update.Post":
117+
scene = stash.find_scene(_id)
118+
processScene(scene)

plugins/videoChapterMarkers/videoChapterMarkers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Video Chapter Markers
22
description: Create markers from chapter information embedded in video files
3-
version: 1.0
3+
version: 1.1
44
url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/videoChapterMarkers
55
exec:
66
- python
@@ -16,4 +16,4 @@ hooks:
1616
- name: Create Markers on Scene Update
1717
description: Extract chapters and create markers when a scene is updated
1818
triggeredBy:
19-
- Scene.Update.Post
19+
- Scene.Update.Post

0 commit comments

Comments
 (0)