Add a new source to Madara (closes #10535). (#10541)

This commit is contained in:
Alessandro Jean 2022-01-22 11:48:19 -03:00 committed by GitHub
parent 067e3b7842
commit 5d7f7e202a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.pt.hentaiteca
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class HentaiTeca : Madara(
"Hentai Teca",
"https://hentaiteca.net",
"pt-BR",
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val altName: String = "Nome alternativo: "
override fun popularMangaSelector() = "div.page-item-detail.manga"
}

View File

@ -109,6 +109,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("HentaiXYuri", "https://hentaixyuri.com", "en", isNsfw = true),
SingleLang("HentaiZone", "https://hentaizone.xyz", "fr", isNsfw = true),
SingleLang("Hentaidexy", "https://hentaidexy.com", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("Hentai Teca", "https://hentaiteca.net", "pt-BR", isNsfw = true),
SingleLang("Heroz Scanlation", "https://herozscans.com", "en", overrideVersionCode = 1),
SingleLang("Hiperdex", "https://hiperdex.com", "en", isNsfw = true, overrideVersionCode = 5),
SingleLang("Hizomanga", "https://hizomanga.com", "ar", overrideVersionCode = 1),