fix(komik): keep api.komiku.org for lists, source genre-list from komiku.org root
Deploy Scraper / build-and-deploy (push) Canceled after 0s
Deploy Scraper / build-and-deploy (push) Canceled after 0s
Blanket-switching the whole komik module to komiku.org broke the manga list: komiku.org/manga/?tipe=manga 301-redirects to /pustaka/ (the new library layout, 0 .bge items), while api.komiku.org/manga/?tipe=manga serves the .bge grid the parser expects unredirected. Correct split: - api_url() = api.komiku.org -> manga/manhua/manhwa/genre/search lists (.bge layout) - genre_list fetches base_url() = komiku.org root, which is POPULATED (#Genre .ls3 .ls3p h4 + /genre/<slug>/ links) — api.komiku.org root is empty Reverts the api_url() half of a46adf1; keeps the underlying insight that the genre-list needs the populated komiku.org root.
This commit is contained in:
@@ -49,7 +49,7 @@ impl KomikUseCases {
|
||||
.get_or_set("komik:genres:list:v3", GENRE_LIST_CACHE_TTL, || async {
|
||||
let html = self
|
||||
.repository
|
||||
.fetch_html(&self.repository.api_url())
|
||||
.fetch_html(&self.repository.base_url())
|
||||
.await
|
||||
.map_err(|e| e.to_string())?;
|
||||
let genres = tokio::task::spawn_blocking(move || parser::parse_genres(&html))
|
||||
|
||||
Reference in New Issue
Block a user