mirror of
https://github.com/hkalexling/Mango.git
synced 2025-09-19 08:34:15 -04:00
Add mangadex to config
This commit is contained in:
parent
676f2ae032
commit
f9a4698fca
@ -20,6 +20,13 @@ class Config
|
|||||||
@[YAML::Field(key: "log_level")]
|
@[YAML::Field(key: "log_level")]
|
||||||
property log_level : String = "info"
|
property log_level : String = "info"
|
||||||
|
|
||||||
|
@[YAML::Field(key: "mangadex")]
|
||||||
|
property mangadex = {
|
||||||
|
"base_url" => "https://mangadex.org",
|
||||||
|
"api_url" => "https://mangadex.org/api",
|
||||||
|
"download_wait_seconds" => 5
|
||||||
|
}
|
||||||
|
|
||||||
def self.load(path : String?)
|
def self.load(path : String?)
|
||||||
path = "~/.config/mango/config.yml" if path.nil?
|
path = "~/.config/mango/config.yml" if path.nil?
|
||||||
cfg_path = File.expand_path path, home: true
|
cfg_path = File.expand_path path, home: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user