mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 11:25:29 -04:00
Ignore key mangadex_default
in config YAML and remove unnecessary
calls to `YAML::Field`
This commit is contained in:
parent
ae281e2e21
commit
173ff2d2e6
@ -3,26 +3,17 @@ require "yaml"
|
|||||||
class Config
|
class Config
|
||||||
include YAML::Serializable
|
include YAML::Serializable
|
||||||
|
|
||||||
@[YAML::Field(key: "port")]
|
|
||||||
property port : Int32 = 9000
|
property port : Int32 = 9000
|
||||||
|
|
||||||
@[YAML::Field(key: "library_path")]
|
|
||||||
property library_path : String = \
|
property library_path : String = \
|
||||||
File.expand_path "~/mango/library", home: true
|
File.expand_path "~/mango/library", home: true
|
||||||
|
|
||||||
@[YAML::Field(key: "db_path")]
|
|
||||||
property db_path : String = \
|
property db_path : String = \
|
||||||
File.expand_path "~/mango/mango.db", home: true
|
File.expand_path "~/mango/mango.db", home: true
|
||||||
|
|
||||||
@[YAML::Field(key: "scan_interval_minutes")]
|
@[YAML::Field(key: "scan_interval_minutes")]
|
||||||
property scan_interval : Int32 = 5
|
property scan_interval : Int32 = 5
|
||||||
|
|
||||||
@[YAML::Field(key: "log_level")]
|
|
||||||
property log_level : String = "info"
|
property log_level : String = "info"
|
||||||
|
|
||||||
@[YAML::Field(key: "mangadex")]
|
|
||||||
property mangadex = Hash(String, String|Int32).new
|
property mangadex = Hash(String, String|Int32).new
|
||||||
|
|
||||||
|
@[YAML::Field(ignore: true)]
|
||||||
@mangadex_defaults = {
|
@mangadex_defaults = {
|
||||||
"base_url" => "https://mangadex.org",
|
"base_url" => "https://mangadex.org",
|
||||||
"api_url" => "https://mangadex.org/api",
|
"api_url" => "https://mangadex.org/api",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user