From a46adf1ce938c5f1d8eb34f529b162fd66f1f11b Mon Sep 17 00:00:00 2001 From: asepharyana Date: Mon, 31 Aug 2026 20:25:56 +0700 Subject: [PATCH] fix(komik): use komiku.org instead of dead api.komiku.org root api.komiku.org returns an empty body for its root path, which broke the komik genre-list endpoint (it fetches the api root and parsed 0 genres). komiku.org serves identical sub-path content (manga lists, genre, search) plus a populated root. Consolidate the komik module onto the canonical working domain. KOMIK2_API_URL env override still honoured. --- src/infrastructure/scraping/scraping_urls.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/infrastructure/scraping/scraping_urls.rs b/src/infrastructure/scraping/scraping_urls.rs index bfd6ba2..3548b01 100644 --- a/src/infrastructure/scraping/scraping_urls.rs +++ b/src/infrastructure/scraping/scraping_urls.rs @@ -20,8 +20,14 @@ pub fn get_production_url() -> String { } /// Get Komik API URL from environment config. +/// +/// Defaults to `https://komiku.org` (NOT the legacy `api.komiku.org`): the +/// `api.komiku.org` root returns an empty body (site-side), which broke the +/// komik genre-list endpoint. `komiku.org` serves identical sub-path content +/// (manga lists, genre, search) plus a populated root, so the module is +/// consolidated onto the canonical, working domain. pub fn get_komik_api_url() -> String { - env::var("KOMIK2_API_URL").unwrap_or_else(|_| "https://api.komiku.org".to_string()) + env::var("KOMIK2_API_URL").unwrap_or_else(|_| "https://komiku.org".to_string()) } /// Get Otakudesu URL from environment config.