Hi, I have a Python script I use for auto-sorting content. At the end it outputs a list of directories to autoscan/autotag:
=== DIRECTORIES TO SCAN/AUTOTAG ===
/data/Studio/StudioName
I think it should be easy to feed that into a function which uses either the Python stashapi, or just standard GraphQL, to tell Stash to run selective scans & auto tags on each of those directories - but I’m struggling to get either of those to work correctly.
Does anyone have some example code they could share that I could work from?
This is the helper code I use in my local plugins: if you’re using it outside of a plugin context you can just inline the GraphQL call into scan and call it directly
You’ll want to change:
The domain/port if you’re not running default settings
The scan settings (I only want to generate phashes on the initial scan)