2021-02-15 15:36:28 +00:00
|
|
|
package eu.kanade.tachiyomi.extension.pt.baixarhentai
|
|
|
|
|
|
|
|
import eu.kanade.tachiyomi.multisrc.foolslide.FoolSlide
|
|
|
|
import eu.kanade.tachiyomi.annotations.Nsfw
|
2021-05-09 00:52:28 +00:00
|
|
|
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
2021-02-15 15:36:28 +00:00
|
|
|
import eu.kanade.tachiyomi.source.model.SManga
|
2021-05-09 00:52:28 +00:00
|
|
|
import okhttp3.OkHttpClient
|
2021-02-15 15:36:28 +00:00
|
|
|
import org.jsoup.nodes.Document
|
2021-05-09 00:52:28 +00:00
|
|
|
import java.util.concurrent.TimeUnit
|
2021-02-15 15:36:28 +00:00
|
|
|
|
|
|
|
@Nsfw
|
2021-05-09 00:52:28 +00:00
|
|
|
class BaixarHentai : FoolSlide(
|
|
|
|
"Baixar Hentai",
|
|
|
|
"https://leitura.baixarhentai.net",
|
|
|
|
"pt-BR"
|
|
|
|
) {
|
2021-02-15 15:36:28 +00:00
|
|
|
// Hardcode the id because the language wasn't specific.
|
|
|
|
override val id: Long = 8908032188831949972
|
|
|
|
|
2021-05-09 00:52:28 +00:00
|
|
|
override val client: OkHttpClient = super.client.newBuilder()
|
2021-07-21 15:25:36 +00:00
|
|
|
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
|
2021-05-09 00:52:28 +00:00
|
|
|
.build()
|
|
|
|
|
2021-02-15 15:36:28 +00:00
|
|
|
override fun mangaDetailsParse(document: Document): SManga {
|
|
|
|
return SManga.create().apply {
|
|
|
|
title = document.select("h1.title").text()
|
|
|
|
thumbnail_url = getDetailsThumbnail(document, "div.title a")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|