71 lines
2.5 KiB
Kotlin
71 lines
2.5 KiB
Kotlin
|
package eu.kanade.tachiyomi.extension.en.freemanga
|
||
|
|
||
|
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 FreeManga : Madara("Free Manga", "https://freemanga.me", "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("Anime", "anime"),
|
||
|
Genre("Cartoon", "cartoon"),
|
||
|
Genre("Comedy", "comedy"),
|
||
|
Genre("Comic", "comic"),
|
||
|
Genre("Cooking", "cooking"),
|
||
|
Genre("Detective", "detective"),
|
||
|
Genre("Doujinshi", "doujinshi"),
|
||
|
Genre("Drama", "drama"),
|
||
|
Genre("Ecchi", "ecchi"),
|
||
|
Genre("Fanstasy", "fantasy"),
|
||
|
Genre("Gender bender", "gender-bender"),
|
||
|
Genre("Harem", "harem"),
|
||
|
Genre("Historical", "historical"),
|
||
|
Genre("Horror", "horror"),
|
||
|
Genre("Isekai", "isekai"),
|
||
|
Genre("Josei", "josei"),
|
||
|
Genre("Live action", "live-action"),
|
||
|
Genre("Manga", "manga"),
|
||
|
Genre("Manhua", "manhua"),
|
||
|
Genre("Manhwa", "manhwa"),
|
||
|
Genre("Martial arts", "martial-arts"),
|
||
|
Genre("Mature", "mature"),
|
||
|
Genre("Mecha", "mecha"),
|
||
|
Genre("Medical", "medical"),
|
||
|
Genre("Mystery", "mystery"),
|
||
|
Genre("One shot", "one-shot"),
|
||
|
Genre("Psychological", "psychological"),
|
||
|
Genre("Romance", "romance"),
|
||
|
Genre("School Life", "school-life"),
|
||
|
Genre("Sci-fi", "sci-fi"),
|
||
|
Genre("Seinen", "seinen"),
|
||
|
Genre("Shoujo", "shoujo"),
|
||
|
Genre("Shoujo ai", "shoujo-ai"),
|
||
|
Genre("Shounen", "shounen"),
|
||
|
Genre("Shounen ai", "shounen-ai"),
|
||
|
Genre("Slice of Life", "slice-of-life"),
|
||
|
Genre("Smut", "smut"),
|
||
|
Genre("Soft Yaoi", "soft-yaoi"),
|
||
|
Genre("Soft Yuri", "soft-yuri"),
|
||
|
Genre("Sports", "sports"),
|
||
|
Genre("Supernatural", "supernatural"),
|
||
|
Genre("Tragedy", "tragedy"),
|
||
|
Genre("Webtoon", "webtoon"),
|
||
|
Genre("Webtoons", "webtoons"),
|
||
|
Genre("Yaoi", "yaoi"),
|
||
|
Genre("Yuri", "yuri"),
|
||
|
)
|
||
|
}
|