RezoScans: Update domain and theme (#10937)

* fix: RezoScans

* fix: lint

* Update version id

* update versionId
This commit is contained in:
Julio Reigen 2025-10-10 23:53:46 -03:00 committed by Draff
parent 322ef36ab0
commit 93f2816776
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 38 additions and 7 deletions

View File

@ -1,9 +1,9 @@
ext {
extName = 'Rezo Scans'
extClass = '.RezoScans'
themePkg = 'keyoapp'
baseUrl = 'https://rezoscans.com'
overrideVersionCode = 3
themePkg = 'iken'
baseUrl = 'https://rezoscan.org'
overrideVersionCode = 11
isNsfw = false
}

View File

@ -1,9 +1,40 @@
package eu.kanade.tachiyomi.extension.en.rezoscans
import eu.kanade.tachiyomi.multisrc.keyoapp.Keyoapp
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 RezoScans : Keyoapp(
class RezoScans : Iken(
"Rezo Scans",
"https://rezoscans.com",
"en",
)
"https://rezoscan.org",
"https://api.rezoscan.org",
) {
override val versionId = 2
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
}