I
Immich•2y ago
krelltunez

How to Schedule External Library Scans

Is there a way to schedule external library scans. I'm not sure if there's a default frequency, but I'd like it to scan more frequently than it currently does.
12 Replies
bo0tzz
bo0tzz•2y ago
There's no built in way to do this, for now you could set up a script to call the API to set off a scan
Gines Rico
Gines Rico•2y ago
Hello, this interests me, how would I call the api to create the script, I have the library with the latest configuration news
schuhbacca
schuhbacca•2y ago
Depends on how you want to call it. Looks like it's just a PUT command. The Api for jobs is here: https://documentation.immich.app/docs/api/send-job-command
etnoy
etnoy•2y ago
You can use the library api
schuhbacca
schuhbacca•2y ago
Sorry, sent the wrong one. Ma b
etnoy
etnoy•2y ago
No worries. There's also another cleanup job we do every day that can be started with the job commands, but that's probably not what you want 🙂 actually, there is a nightly job that runs to refresh all libraries. It might not even be documented (yet) but it runs every night 🙂
krelltunez
krelltunezOP•2y ago
Yeah I noticed stuff gets picked up overnight. I just assumed there'd be settings somewhere to customize that.
etnoy
etnoy•2y ago
Not yet, sorry
Gines Rico
Gines Rico•2y ago
Forgive my ignorance, the command to launch would be id library ??
Gines Rico
Gines Rico•2y ago
thank you very much, I already have it up and running
etnoy
etnoy•2y ago
Awesome

Did you find this page helpful?