bigeyez 10 Posted December 27, 2017 Posted December 27, 2017 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?
Luke 42078 Posted December 27, 2017 Posted December 27, 2017 There is no way to do this but it's a possibility for the future. Thanks.
bigeyez 10 Posted December 27, 2017 Author Posted December 27, 2017 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 722 Posted December 27, 2017 Posted December 27, 2017 @@Luke, is there a scan API call by library name? I'd assume so, which would make rolling our own pretty simple.
bgx 17 Posted December 29, 2017 Posted December 29, 2017 (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 logyyyy=apikey idThis works for me like it should.Edited before was wrong url... Edited December 29, 2017 by bgx
Luke 42078 Posted December 29, 2017 Posted December 29, 2017 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 !
bgx 17 Posted December 29, 2017 Posted December 29, 2017 @@Luke Is there a nicer way to find out the libary id?
Luke 42078 Posted December 29, 2017 Posted December 29, 2017 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now