RezoScans: Update domain and theme (#10937)
* fix: RezoScans * fix: lint * Update version id * update versionId
This commit is contained in:
parent
322ef36ab0
commit
93f2816776
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user