Nexo Scans: Fix chapter parsing (#262)
* Nexo Scans: Fix chapter parsing * bump overrideVersionCode
This commit is contained in:
parent
205e138dd2
commit
172d11d9ea
|
@ -3,15 +3,22 @@ package eu.kanade.tachiyomi.extension.pt.nexoscans
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
import eu.kanade.tachiyomi.network.interceptor.rateLimit
|
||||||
import okhttp3.OkHttpClient
|
import okhttp3.OkHttpClient
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
class NexoScans : Madara(
|
class NexoScans : Madara(
|
||||||
"Nexo Scans",
|
"Nexo Scans",
|
||||||
"https://nexoscans.com",
|
"https://nexoscans.com",
|
||||||
"pt-BR",
|
"pt-BR",
|
||||||
|
SimpleDateFormat("dd/MM/yyyy", Locale.US),
|
||||||
) {
|
) {
|
||||||
|
|
||||||
override val client: OkHttpClient = super.client.newBuilder()
|
override val client: OkHttpClient = super.client.newBuilder()
|
||||||
.rateLimit(1, 2, TimeUnit.SECONDS)
|
.rateLimit(1, 2, TimeUnit.SECONDS)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
|
override val useNewChapterEndpoint = true
|
||||||
|
|
||||||
|
override val chapterUrlSelector = "a:not(div.chapter-thumbnail a)"
|
||||||
}
|
}
|
||||||
|
|
|
@ -372,7 +372,7 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
SingleLang("NekoPost.co (unoriginal)", "https://www.nekopost.co", "th", isNsfw = false, className = "NekoPostCo"),
|
SingleLang("NekoPost.co (unoriginal)", "https://www.nekopost.co", "th", isNsfw = false, className = "NekoPostCo"),
|
||||||
SingleLang("NekoScan", "https://nekoscan.com", "en", overrideVersionCode = 2),
|
SingleLang("NekoScan", "https://nekoscan.com", "en", overrideVersionCode = 2),
|
||||||
SingleLang("NewManhua", "https://newmanhua.com", "en", isNsfw = true),
|
SingleLang("NewManhua", "https://newmanhua.com", "en", isNsfw = true),
|
||||||
SingleLang("Nexo Scans", "https://nexoscans.com", "pt-BR"),
|
SingleLang("Nexo Scans", "https://nexoscans.com", "pt-BR", overrideVersionCode = 1),
|
||||||
SingleLang("Night Comic", "https://www.nightcomic.com", "en", overrideVersionCode = 1),
|
SingleLang("Night Comic", "https://www.nightcomic.com", "en", overrideVersionCode = 1),
|
||||||
SingleLang("Niji Translations", "https://niji-translations.com", "ar", overrideVersionCode = 1),
|
SingleLang("Niji Translations", "https://niji-translations.com", "ar", overrideVersionCode = 1),
|
||||||
SingleLang("Nitro Manga", "https://nitromanga.com", "en", className = "NitroScans", overrideVersionCode = 1),
|
SingleLang("Nitro Manga", "https://nitromanga.com", "en", className = "NitroScans", overrideVersionCode = 1),
|
||||||
|
|
Loading…
Reference in New Issue