Fix wrong selector and date format at LW (#6844)
* Fix wrong selector and date format at LW (closes #6654). * Fix overrideVersionCode in wrong source.
This commit is contained in:
parent
807f2c8a57
commit
7d8f8f28a1
|
@ -1,8 +1,43 @@
|
|||
package eu.kanade.tachiyomi.extension.pt.wonderland
|
||||
|
||||
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 Wonderland : Madara("Wonderland", "https://landwebtoons.site",
|
||||
"pt-BR", SimpleDateFormat("dd 'de' MMMM 'de' yyyy", Locale("pt", "BR")))
|
||||
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")
|
||||
)
|
||||
}
|
||||
|
|
|
@ -260,7 +260,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
|||
SingleLang("Three Queens Scanlator", "https://tqscan.com.br", "pt-BR"),
|
||||
SingleLang("Winter Scan", "https://winterscan.com.br", "pt-BR"),
|
||||
SingleLang("Little Monster Scan", "https://littlemonsterscan.com.br", "pt-BR"),
|
||||
SingleLang("Wonderland", "https://landwebtoons.site", "pt-BR"),
|
||||
SingleLang("Wonderland", "https://landwebtoons.site", "pt-BR", overrideVersionCode = 1),
|
||||
SingleLang("Pornwha", "https://pornwha.com", "en", isNsfw = true),
|
||||
SingleLang("Wakamics", "https://wakamics.net", "en"),
|
||||
SingleLang("Traducciones Amistosas", "https://nartag.com", "es"),
|
||||
|
|
Loading…
Reference in New Issue