37 lines
1.1 KiB
Kotlin
37 lines
1.1 KiB
Kotlin
package eu.kanade.tachiyomi.extension.pt.cerisescans
|
|
|
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
|
import eu.kanade.tachiyomi.network.GET
|
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
|
import eu.kanade.tachiyomi.source.model.SManga
|
|
import okhttp3.OkHttpClient
|
|
import okhttp3.Request
|
|
import java.text.SimpleDateFormat
|
|
import java.util.Locale
|
|
import java.util.concurrent.TimeUnit
|
|
|
|
class CeriseScan : Madara(
|
|
"Cerise Scan",
|
|
"https://cerisescan.com/home1",
|
|
"pt-BR",
|
|
SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")),
|
|
) {
|
|
|
|
// Name changed from 'Cerise Scans' to 'Cerise Scan'
|
|
override val id: Long = 8629915907358523454
|
|
|
|
override val client: OkHttpClient = super.client.newBuilder()
|
|
.rateLimit(1, 2, TimeUnit.SECONDS)
|
|
.build()
|
|
|
|
override val useNewChapterEndpoint = true
|
|
|
|
override fun mangaDetailsRequest(manga: SManga): Request {
|
|
return GET(baseUrl + manga.url.replace("/home1", ""), headers)
|
|
}
|
|
|
|
override fun chapterListRequest(manga: SManga): Request {
|
|
return GET(baseUrl + manga.url.replace("/home1", ""), headers)
|
|
}
|
|
}
|