fix: change how Iken multisrc gets latest (#9002)

This commit is contained in:
Liam Rooney 2025-05-29 18:41:58 -07:00 committed by Draff
parent 5edb0c0e62
commit 989bb4252b
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 14 additions and 2 deletions

View File

@ -2,4 +2,4 @@ plugins {
id("lib-multisrc")
}
baseVersionCode = 9
baseVersionCode = 10

View File

@ -67,7 +67,19 @@ abstract class Iken(
return MangasPage(entries, false)
}
override fun latestUpdatesRequest(page: Int) = searchMangaRequest(page, "", getFilterList())
override fun latestUpdatesRequest(page: Int): Request {
val url = "$apiUrl/api/posts".toHttpUrl().newBuilder().apply {
addQueryParameter("page", page.toString())
addQueryParameter("perPage", perPage.toString())
if (apiUrl.startsWith("https://api.", true)) {
addQueryParameter("tag", "latestUpdate")
addQueryParameter("isNovel", "false")
}
}.build()
return GET(url, headers)
}
override fun latestUpdatesParse(response: Response) = searchMangaParse(response)
override fun searchMangaRequest(page: Int, query: String, filters: FilterList): Request {