add Hentai20 to madara (#7564)

* Create Hentai20.kt

* add hentai20 icon

* Update MadaraGenerator.kt

* add comma
This commit is contained in:
CVIUS 2021-06-09 20:52:35 +08:00 committed by GitHub
parent 30188b01d8
commit f89a84b809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 47 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -0,0 +1,46 @@
package eu.kanade.tachiyomi.extension.en.hentai20
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 Hentai20 : Madara("Hentai20", "https://hentai20.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("BL", "bl"),
Genre("Comedy", "comedy"),
Genre("Drama", "drama"),
Genre("Ecchi", "ecchi"),
Genre("Fanstasy", "fantasy"),
Genre("GL", "gl"),
Genre("Harem", "harem"),
Genre("Hentai", "hentai"),
Genre("Horror", "horror"),
Genre("Manga", "manga"),
Genre("Manhwa hentai", "manhwa-hentai"),
Genre("Martial arts", "martial-arts"),
Genre("Mature", "mature"),
Genre("Mystery", "mystery"),
Genre("Psychological", "psychological"),
Genre("Romance", "romance"),
Genre("School Life", "school-life"),
Genre("Sci-fi", "sci-fi"),
Genre("Slice of Life", "slice-of-life"),
Genre("Smut", "smut"),
Genre("Supernatural", "supernatural"),
Genre("Thriller", "thriller"),
)
}

View File

@ -70,6 +70,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Glory Scans", "https://gloryscan.com", "pt-BR", isNsfw = true, overrideVersionCode = 1),
SingleLang("Graze Scans", "https://grazescans.com/", "en", overrideVersionCode = 1),
SingleLang("GuncelManga", "https://guncelmanga.com", "tr"),
SingleLang("Hentai20", "https://hentai20.com", "en", isNsfw = true),
SingleLang("Hero Manhua", "https://heromanhua.com", "en"),
SingleLang("Heroz Scanlation", "https://herozscans.com", "en", overrideVersionCode = 1),
SingleLang("Himera Fansub", "https://himera-fansub.com", "tr"),