Stash Batch Save (fork)

Features

In Scene Tagger, adds button to batch save all scenes. Opens a confirmation popup when clicked.

Screenshots

scenes-tagger

2 Likes

Thanks @Eleniat for the report and the details that sometimes scenes can get skipped. Using UI elements for tracking is very unreliable, but hopefully this band-aid can help.

v0.6.0

  • Added configurable save delay setting.
  • Added percentage values to progress bar.
1 Like

Hi

I am getting these errors in console regularly even when the “Save All” is not being run -


Uncaught (in promise) TypeError: can't access property "fingerprintQueue", tagger is null

    updateFingerprintQueue https://<STASH_HOSTNAME>/plugin/stashBatchSave/javascript:129

    timeoutId https://<STASH_HOSTNAME>/plugin/stashBatchSave/javascript:108

    setTimeout handler\*debounceAsync/</< https://<STASH_HOSTNAME>/plugin/stashBatchSave/javascript:106

    debounceAsync https://<STASH_HOSTNAME>/plugin/stashBatchSave/javascript:105

    checkSaveButtonDisplay https://<STASH_HOSTNAME>/plugin/stashBatchSave/javascript:217

    sceneTaggerObserver https://<STASH_HOSTNAME>/plugin/stashUserscriptLibrary7dJx1qPFork/javascript:261

    Stash https://<STASH_HOSTNAME>/plugin/stashUserscriptLibrary7dJx1qPFork/javascript:229

    stash https://<STASH_HOSTNAME>/plugin/stashUserscriptLibrary7dJx1qPFork/javascript:1075

    <anonymous> https://<STASH_HOSTNAME>/plugin/stashUserscriptLibrary7dJx1qPFork/javascript:1096

    <anonymous> https://<STASH_HOSTNAME>/plugin/stashUserscriptLibrary7dJx1qPFork/javascript:1098

[javascript:129:44](https://<STASH_HOSTNAME>/plugin/stashBatchSave/javascript "View source in Debugger → https://<STASH_HOSTNAME>/plugin/stashBatchSave/javascript:129:44")

Not sure if they are impacting any functionality though, is this expected?

Those errors are benign. Stash changed how it stores fingerprints since the original plugin was released so it returns errors, but the functionality itself should work.

I can look into cleaning up the code at some point.

1 Like

I’m pretty sure it’s impacting functionality. The batch save operation saves one scene successfully (the last one in the list, starting from the bottom) and then throws the above-mentioned error and fails to save any additional scenes from the batch

javascript:129 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘fingerprintQueue’)at updateFingerprintQueue (javascript:129:51)at async javascript:108:40

I am experiencing the same problem as described by @lewdtuber . I just updated Stash to the latest version today, and now the Batch Save plugin only saves a single scene and then stops. I can’t confirm the exact error, but the behavior is as @lewdtuber describes—saves just a single scene and then stops.

Is there a quick fix? Alternative? Anything?

Should address the console errors.

I can’t reproduce the same case of it only saving a single scene. What are your plugin settings set to?

I think I updated to the new version (0.6.1-0d840ce), but unfortunately it’s behaving the same. Here is a screenshot of my settings.

On the off chance this applies to you, make sure you have no remnants of the old userscript library and only have the newer fork version. My batch save did not work (only saving one scene) until I found and deleted the old folder manually.

1 Like

Not quite sure exactly what you mean, but I’ll try to figure it out; I’m not a developer. Thanks. In case you can provide more guidance, here is a screenshot of my plugins folder.

OMG! I deleted the stashUserscriptLibrary folder from Nov 2025, restarted Stash, and now the Batch Save is working again. Thank you!

1 Like