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.32k stars 801 forks source link

[Feature] Set Default Values for Scrapers #5393

Closed NormanPriv closed 1 month ago

NormanPriv commented 1 month ago

Is your feature request related to a problem? Please describe. I use a URL scraper a lot. There are almost always certain fields that I wish a default value could be set so that I don't have to add that repetitively.

Describe the solution you'd like Set a default value for selected fields that is filled in every time a scraper is used.

Describe alternatives you've considered Set a value in batch?

Additional context For example, if all content from the same website are classified to the same "studio", I would wish a default value of "studio" is set automatically.

Maista6969 commented 1 month ago

Scrapers can have fixed values for simple fields, like the studio name, as can be seen in the VRHush scraper for example

Even for more complex fields like tags we can use some tricks to add fixed values: this trick is also used in the VRHush scraper to ensure that every scrape result contains the Virtual Reality tag

Your alternative solution might be even simpler, though: selecting multiple scenes allows you to bulk edit them to set the studio, performers, tags etc. for any number of scenes in a single operation

NormanPriv commented 1 month ago

All right, thanks for the answer. I realize that this feature can already be achieved by setting the "fixed" value in scraper. I didn't see that subsection in the doc earlier.