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:
parent
87647ac04f
commit
5dc3fc0cf2
@ -2,7 +2,7 @@ ext {
|
|||||||
extName = 'Vortex Scans'
|
extName = 'Vortex Scans'
|
||||||
extClass = '.VortexScans'
|
extClass = '.VortexScans'
|
||||||
themePkg = 'iken'
|
themePkg = 'iken'
|
||||||
overrideVersionCode = 37
|
overrideVersionCode = 38
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@ package eu.kanade.tachiyomi.extension.en.arvenscans
|
|||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.iken.Iken
|
import eu.kanade.tachiyomi.multisrc.iken.Iken
|
||||||
import eu.kanade.tachiyomi.network.GET
|
import eu.kanade.tachiyomi.network.GET
|
||||||
|
import okhttp3.HttpUrl.Companion.toHttpUrl
|
||||||
|
import okhttp3.Request
|
||||||
|
import okhttp3.Response
|
||||||
|
|
||||||
class VortexScans : Iken(
|
class VortexScans : Iken(
|
||||||
"Vortex Scans",
|
"Vortex Scans",
|
||||||
@ -9,5 +12,27 @@ class VortexScans : Iken(
|
|||||||
"https://vortexscans.org",
|
"https://vortexscans.org",
|
||||||
"https://api.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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user