bigeyez 7 Posted December 27, 2017 Share 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? Link to comment Share on other sites More sharing options...
Luke 37109 Posted December 27, 2017 Share Posted December 27, 2017 There is no way to do this but it's a possibility for the future. Thanks. Link to comment Share on other sites More sharing options...
bigeyez 7 Posted December 27, 2017 Author Share 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. Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted December 27, 2017 Share 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. Link to comment Share on other sites More sharing options...
bgx 16 Posted December 29, 2017 Share 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 Link to comment Share on other sites More sharing options...
Luke 37109 Posted December 29, 2017 Share 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 ! Link to comment Share on other sites More sharing options...
bgx 16 Posted December 29, 2017 Share Posted December 29, 2017 @@Luke Is there a nicer way to find out the libary id? Link to comment Share on other sites More sharing options...
Luke 37109 Posted December 29, 2017 Share 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. Link to comment Share on other sites More sharing options...
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