Add config options for optimization tasks

This commit is contained in:
Alex Ling
2020-10-24 03:50:26 +00:00
parent 83d96fd2a1
commit 0582b57d60
3 changed files with 71 additions and 69 deletions

View File

@@ -11,8 +11,9 @@ class Config
property library_path : String = File.expand_path "~/mango/library",
home: true
property db_path : String = File.expand_path "~/mango/mango.db", home: true
@[YAML::Field(key: "scan_interval_minutes")]
property scan_interval : Int32 = 5
property scan_interval_minutes : Int32 = 5
property thumbnail_generation_interval_hours : Int32 = 24
property db_optimization_interval_hours : Int32 = 24
property log_level : String = "info"
property upload_path : String = File.expand_path "~/mango/uploads",
home: true