2021-04-21 09:41:47 +00:00
|
|
|
package eu.kanade.tachiyomi.extension.pt.wonderland
|
|
|
|
|
2021-05-06 10:23:48 +00:00
|
|
|
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
|
2021-04-21 09:41:47 +00:00
|
|
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
2021-05-06 10:23:48 +00:00
|
|
|
import okhttp3.OkHttpClient
|
2021-04-21 09:41:47 +00:00
|
|
|
import java.text.SimpleDateFormat
|
|
|
|
import java.util.Locale
|
2021-05-06 10:23:48 +00:00
|
|
|
import java.util.concurrent.TimeUnit
|
2021-04-21 09:41:47 +00:00
|
|
|
|
2021-05-06 10:23:48 +00:00
|
|
|
class Wonderland : Madara(
|
|
|
|
"Wonderland",
|
|
|
|
"https://landwebtoons.site",
|
|
|
|
"pt-BR",
|
|
|
|
SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR"))
|
|
|
|
) {
|
|
|
|
|
|
|
|
override val client: OkHttpClient = super.client.newBuilder()
|
|
|
|
.addInterceptor(RateLimitInterceptor(1, 1, TimeUnit.SECONDS))
|
|
|
|
.build()
|
|
|
|
|
|
|
|
override val popularMangaUrlSelector = "div.post-title a:not([target])"
|
|
|
|
|
|
|
|
// [...document.querySelectorAll('div.genres li a')]
|
|
|
|
// .map(x => `Genre("${x.innerText.slice(1, -4)}", "${x.href.replace(/.*-genre\/(.*)\//, '$1')}")`)
|
|
|
|
// .join(',\n')
|
|
|
|
override fun getGenreList(): List<Genre> = listOf(
|
|
|
|
Genre("Ação", "acao"),
|
|
|
|
Genre("Comédia", "comedia"),
|
|
|
|
Genre("Drama", "drama"),
|
|
|
|
Genre("Ecchi", "ecchi"),
|
|
|
|
Genre("Fantasia ", "fantasia"),
|
|
|
|
Genre("Histórico", "historico"),
|
|
|
|
Genre("Horror", "horror"),
|
|
|
|
Genre("Josei", "josei"),
|
|
|
|
Genre("Mistério", "misterio"),
|
|
|
|
Genre("Psicológico", "psicologico"),
|
|
|
|
Genre("Romance", "romance"),
|
|
|
|
Genre("Shoujo", "shoujo"),
|
|
|
|
Genre("Slice Of Life", "slice-of-life"),
|
|
|
|
Genre("Smut", "smut"),
|
|
|
|
Genre("Sobrenatural", "sobrenatural")
|
|
|
|
)
|
|
|
|
}
|