mirror of
https://github.com/stashapp/CommunityScripts.git
synced 2026-04-12 19:41:51 -05:00
[Video Chapter Markers] Fix on update trigger (#575)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user