From 16d76518205ac460fabf5762e32806cac3d61a3b Mon Sep 17 00:00:00 2001 From: Minasuki Hikimuna Date: Mon, 9 Sep 2024 14:21:13 +0300 Subject: [PATCH] CompleteTheStash: Disable hooks by default to dramatically increase the performance You can uncomment the hooks in plugin YAML if you want missing scenes to be updated whenever you update scenes in the main Stash. This will cause each scene update to a couple of seconds which is a couple of orders of magnitudes longer than without these. The slowness is caused because each scene update will start the plugin separately and it will then connect to multiple stashes. --- plugins/CompleteTheStash/CompleteTheStash.yml | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/plugins/CompleteTheStash/CompleteTheStash.yml b/plugins/CompleteTheStash/CompleteTheStash.yml index 86892b4..d754fac 100644 --- a/plugins/CompleteTheStash/CompleteTheStash.yml +++ b/plugins/CompleteTheStash/CompleteTheStash.yml @@ -1,17 +1,23 @@ name: CompleteTheStash description: Finds missing scenes for selected performers and creates missing scene metadata to another missing Stash instance. You can use either StashDB or TPDB or both as a source for missing scenes. -version: 0.4.9 +version: 0.5.0 url: https://github.com/MinasukiHikimuna/MidnightRider-Stash/ exec: - python - "{pluginDir}/CompleteTheStash.py" # Adjust to your script's name and location interface: raw -hooks: - - name: PerformerCompare - description: Removes scene from missing Stash if a match is found in local Stash. - triggeredBy: - - Scene.Create.Post - - Scene.Update.Post +# Uncomment the following hooks if you want missing scenes to be updated +# whenever you update scenes in the main Stash. This will cause each scene +# update to a couple of seconds which is a couple of orders of magnitudes +# longer than without these. The slowness is caused because each scene update +# will start the plugin separately and it will then connect to multiple stashes. +# +# hooks: +# - name: PerformerCompare +# description: Removes scene from missing Stash if a match is found in local Stash. +# triggeredBy: +# - Scene.Create.Post +# - Scene.Update.Post tasks: - name: Complete The Stash! description: Create missing scenes of performers to another Stash instance