stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.27k stars 791 forks source link

[Feature] Query in Scene Tagger using StashID #2816

Open AdultSun opened 2 years ago

AdultSun commented 2 years ago

Is your feature request related to a problem? Please describe. It appears that the Scene Tagger view does not query Stash-Boxes using attached StashIDs. The "Scrape All" button uses a fingerprint lookup (same as the "Scrape by fragment" button) whether a StashID is attached or not. The individual "Search" buttons have a configurable default under the "Query Mode" dropdown, but StashID is not one of the options. The only way to send a StashID query is to manually copy/paste it into the "Query" box yourself.

This is only an issue when you'd like to update your previously matched scenes with new data from a Stash-Box and your fingerprints match multiple entries. Otherwise, the program behaves the same way whether it's using fingerprints or StashIDs to find matches.

Describe the solution you'd like At the very least, adding "StashID" as an option in the "Query Mode" dropdown of the Scene Tagger would save us the step of copying the StashID into the query field manually. It would also make sense to update the "Auto" option to add StashID as the new priority, making it StashID -> Metadata -> Filename.

Describe alternatives you've considered The "Scrape All" button could be updated as well, but that behavior may not be preferable. It's currently understood by those familiar with the Scene Tagger that it will search using fingerprints only. If this behavior is changed to default to StashID first, it would not be immediately obvious that something has changed. Visibly, the only difference would be that there will be fewer results in some scenes. In order to allow for bulk scraping using StashIDs, the "Scrape All" button would likely need to be configurable using a method similar to the "Query Mode" dropdown.

Another consideration is how Identify handles scenes with StashIDs attached, but I'm less familiar with how that tool works to speak on that.

7dJx1qP commented 2 years ago

Here's a userscript workaround that will go through the Tagger scenes (bottom to top) and copy the StashID (if there is one) into the query field and then click the search button. https://gist.github.com/7dJx1qP/466c82b86b4d1f3bbdfff8a729ecb55a Enter batchQueryStashIDStart(); into the browser console to start it and batchQueryStashIDStop(); to stop at any point