mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-24 00:03:12 -04:00
Add mangadex to config
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user