- create scan method to prepare for periodic scanning

This commit is contained in:
Alex Ling
2020-02-16 04:01:30 +00:00
parent 93e6d7cae6
commit e7583ce788
2 changed files with 15 additions and 10 deletions

View File

@@ -265,7 +265,7 @@ class Server
post "/api/admin/scan" do |env|
start = Time.utc
@library = Library.new @config.@library_path
@library.scan
ms = (Time.utc - start).total_milliseconds
send_json env, {
"milliseconds" => ms,