Jump to content

How to set interval scanning for individual libs?


Recommended Posts

Posted

Currently scannning at intervals works on all libs. I want to set more frequent scanning for an individual library, a cron job would be fine as well.  Is it possible?

Posted

There is no way to do this but it's a possibility for the future. Thanks.

Posted

​That would be great, most of my libs are large libs so I do not want to make my drives busy for a small set up updates.

mastrmind11
Posted

@@Luke, is there a scan API call by library name?  I'd assume so, which would make rolling our own pretty simple.

Posted (edited)

Pretty easy. First you need to define an secure api key. Then start scanning your lib you want in bibliotheks. Then search this URL in the log. And paste this to cronjob or what ever you want:
 

curl --data '' "http://127.0.0.1:8096/emby/Items/xxxx/Refresh?Recursive=true&api_key=yyyy"

xxxx=Bibliotek id from the log
yyyy=apikey id

This works for me like it should.

Edited before was wrong url...

Edited by bgx
Posted

Pretty easy. First you need to define an secure api key. Then start scanning your lib you want in bibliotheks. Then search this URL in the log. And paste this to cronjob or what ever you want:

 

curl --data '' "http://127.0.0.1:8096/emby/Items/xxxx/Refresh?Recursive=true&api_key=yyyy"

xxxx=Bibliotek id from the log

yyyy=apikey id

 

This works for me like it should.

 

Gesendet von meinem MHA-L29 mit Tapatalk

 

Yes this will work, thanks !

Posted

@@Luke Is there a nicer way to find out the libary id?

Posted

Well you have to use the api to begin with in order to know what it is. We don't display it anywhere in the UI.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...