From cb4e4437a6f7d2349fca06f2f5de4395867528d5 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Tue, 9 Mar 2021 16:43:46 +0000 Subject: [PATCH] Update MD API URL (closes #174) --- src/config.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.cr b/src/config.cr index 5e4d055..b9885a2 100644 --- a/src/config.cr +++ b/src/config.cr @@ -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", @@ -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 "/"