Vortex Scans: Fix Popular & update Latest tabs (#10481)

* Vortex Scans: Bump versionCode

* Vortex Scans: Use API for Popular request

* Vortex Scans: Override Latest request with site's "new" tag query

* Apply suggestion

Co-authored-by: bapeey <90949336+bapeey@users.noreply.github.com>

* Vortex Scans: Parity suggestion onto Popular

---------

Co-authored-by: bapeey <90949336+bapeey@users.noreply.github.com>
This commit is contained in:
Smol Ame 2025-09-13 06:03:11 -08:00 committed by Draff
parent 87647ac04f
commit 5dc3fc0cf2
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 27 additions and 2 deletions

View File

@ -2,7 +2,7 @@ ext {
extName = 'Vortex Scans'
extClass = '.VortexScans'
themePkg = 'iken'
overrideVersionCode = 37
overrideVersionCode = 38
isNsfw = false
}

View File

@ -2,6 +2,9 @@ package eu.kanade.tachiyomi.extension.en.arvenscans
import eu.kanade.tachiyomi.multisrc.iken.Iken
import eu.kanade.tachiyomi.network.GET
import okhttp3.HttpUrl.Companion.toHttpUrl
import okhttp3.Request
import okhttp3.Response
class VortexScans : Iken(
"Vortex Scans",
@ -9,5 +12,27 @@ class VortexScans : Iken(
"https://vortexscans.org",
"https://api.vortexscans.org",
) {
override fun popularMangaRequest(page: Int) = GET(baseUrl, headers)
override fun latestUpdatesRequest(page: Int): Request {
val url = "$apiUrl/api/posts".toHttpUrl().newBuilder().apply {
addQueryParameter("page", page.toString())
addQueryParameter("perPage", perPage.toString())
addQueryParameter("tag", "new")
addQueryParameter("isNovel", "false")
}.build()
return GET(url, headers)
}
override fun popularMangaRequest(page: Int): Request {
val url = "$apiUrl/api/posts".toHttpUrl().newBuilder().apply {
addQueryParameter("page", page.toString())
addQueryParameter("perPage", perPage.toString())
addQueryParameter("tag", "hot")
addQueryParameter("isNovel", "false")
}.build()
return GET(url, headers)
}
override fun popularMangaParse(response: Response) = searchMangaParse(response)
val perPage = 18
}