42 lines
1.4 KiB
Kotlin
42 lines
1.4 KiB
Kotlin
|
package eu.kanade.tachiyomi.extension.en.mangapl
|
||
|
|
||
|
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
||
|
import eu.kanade.tachiyomi.annotations.Nsfw
|
||
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||
|
import okhttp3.OkHttpClient
|
||
|
import java.util.concurrent.TimeUnit
|
||
|
|
||
|
@Nsfw
|
||
|
class MangaPL : Madara("MangaPL", "https://mangapl.com", "en") {
|
||
|
private val rateLimitInterceptor = RateLimitInterceptor(1)
|
||
|
|
||
|
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
|
||
|
.connectTimeout(10, TimeUnit.SECONDS)
|
||
|
.readTimeout(30, TimeUnit.SECONDS)
|
||
|
.addNetworkInterceptor(rateLimitInterceptor)
|
||
|
.build()
|
||
|
|
||
|
override fun getGenreList() = listOf(
|
||
|
Genre("Action", "action"),
|
||
|
Genre("Adult", "adult"),
|
||
|
Genre("Adventure", "adventure"),
|
||
|
Genre("Comedy", "comedy"),
|
||
|
Genre("Drama", "drama"),
|
||
|
Genre("Doujinshi", "doujinshi"),
|
||
|
Genre("Drama", "drama"),
|
||
|
Genre("Ecchi", "ecchi"),
|
||
|
Genre("Harem", "harem"),
|
||
|
Genre("Mature", "mature"),
|
||
|
Genre("Mystery", "mystery"),
|
||
|
Genre("Psychological", "psychological"),
|
||
|
Genre("Raw", "raw"),
|
||
|
Genre("Romance", "romance"),
|
||
|
Genre("School Life", "school-life"),
|
||
|
Genre("Seinen", "seinen"),
|
||
|
Genre("Slice of Life", "slice-of-life"),
|
||
|
Genre("Smut", "smut"),
|
||
|
Genre("Supernatural", "supernatural"),
|
||
|
Genre("Tragedy", "tragedy"),
|
||
|
)
|
||
|
}
|