Skip to content

Commit

Permalink
Update MD API URL (closes #174)
Browse files Browse the repository at this point in the history
  • Loading branch information
hkalexling committed Mar 9, 2021
1 parent 2743868 commit cb4e443
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Config
@[YAML::Field(ignore: true)]
@mangadex_defaults = {
"base_url" => "https://mangadex.org",
"api_url" => "https://mangadex.org/api/v2",
"api_url" => "https://api.mangadex.org/v2",
"download_wait_seconds" => 5,
"download_retries" => 4,
"download_queue_db_path" => File.expand_path("~/mango/queue.db",
Expand Down Expand Up @@ -98,8 +98,8 @@ class Config
Log.setup :debug
Log.warn { "It looks like you are using the deprecated MangaDex API " \
"v1 in your config file. Please update it to " \
"https://mangadex.org/api/v2 to suppress this warning." }
mangadex["api_url"] = "https://mangadex.org/api/v2"
"https://api.mangadex.org/v2 to suppress this warning." }
mangadex["api_url"] = "https://api.mangadex.org/v2"
end
mangadex["api_url"] = mangadex["api_url"].to_s.rstrip "/"
mangadex["base_url"] = mangadex["base_url"].to_s.rstrip "/"
Expand Down

0 comments on commit cb4e443

Please sign in to comment.