From 948d168a761594c1a2fa4873679b5d2f42e60afc Mon Sep 17 00:00:00 2001 From: beerpsi <92439990+beerpiss@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:58:44 +0700 Subject: [PATCH] Nexo Scans: Fix chapter parsing (#262) * Nexo Scans: Fix chapter parsing * bump overrideVersionCode --- multisrc/overrides/madara/nexoscans/src/NexoScans.kt | 7 +++++++ .../eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/multisrc/overrides/madara/nexoscans/src/NexoScans.kt b/multisrc/overrides/madara/nexoscans/src/NexoScans.kt index 1766c7e3f3..34e1fee847 100644 --- a/multisrc/overrides/madara/nexoscans/src/NexoScans.kt +++ b/multisrc/overrides/madara/nexoscans/src/NexoScans.kt @@ -3,15 +3,22 @@ package eu.kanade.tachiyomi.extension.pt.nexoscans import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.network.interceptor.rateLimit import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.Locale import java.util.concurrent.TimeUnit class NexoScans : Madara( "Nexo Scans", "https://nexoscans.com", "pt-BR", + SimpleDateFormat("dd/MM/yyyy", Locale.US), ) { override val client: OkHttpClient = super.client.newBuilder() .rateLimit(1, 2, TimeUnit.SECONDS) .build() + + override val useNewChapterEndpoint = true + + override val chapterUrlSelector = "a:not(div.chapter-thumbnail a)" } diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index f477209d58..38fcfe59e7 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -371,7 +371,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("NekoPost.co (unoriginal)", "https://www.nekopost.co", "th", isNsfw = false, className = "NekoPostCo"), SingleLang("NekoScan", "https://nekoscan.com", "en", overrideVersionCode = 2), 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("Niji Translations", "https://niji-translations.com", "ar", overrideVersionCode = 1), SingleLang("Nitro Manga", "https://nitromanga.com", "en", className = "NitroScans", overrideVersionCode = 1),