From 601f45baecee0e4306ac9f3bdbda1af0716aa212 Mon Sep 17 00:00:00 2001 From: Chopper <156493704+choppeh@users.noreply.github.com> Date: Mon, 19 Aug 2024 06:30:34 -0300 Subject: [PATCH] NoIndexScan: Fix manga details selector (#4686) * Fix manga details selector * Fix date format --- src/pt/noindexscan/build.gradle | 2 +- .../kanade/tachiyomi/extension/pt/noindexscan/NoIndexScan.kt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pt/noindexscan/build.gradle b/src/pt/noindexscan/build.gradle index 761190cb6..d98fe0bf0 100644 --- a/src/pt/noindexscan/build.gradle +++ b/src/pt/noindexscan/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.NoIndexScan' themePkg = 'madara' baseUrl = 'https://noindexscan.com' - overrideVersionCode = 0 + overrideVersionCode = 1 isNsfw = true } diff --git a/src/pt/noindexscan/src/eu/kanade/tachiyomi/extension/pt/noindexscan/NoIndexScan.kt b/src/pt/noindexscan/src/eu/kanade/tachiyomi/extension/pt/noindexscan/NoIndexScan.kt index 5452b8b89..4597adf3e 100644 --- a/src/pt/noindexscan/src/eu/kanade/tachiyomi/extension/pt/noindexscan/NoIndexScan.kt +++ b/src/pt/noindexscan/src/eu/kanade/tachiyomi/extension/pt/noindexscan/NoIndexScan.kt @@ -11,11 +11,14 @@ class NoIndexScan : Madara( "No Index Scan", "https://noindexscan.com", "pt-BR", - SimpleDateFormat("dd 'de' MMMMM 'de' yyyy", Locale("pt", "BR")), + SimpleDateFormat("dd/MM/yyyy", Locale.ROOT), ) { override val client: OkHttpClient = super.client.newBuilder() .rateLimit(1, 2, TimeUnit.SECONDS) .build() override val useNewChapterEndpoint = true + + override val mangaDetailsSelectorTitle = "div[class*='post-title'] h1" + override val mangaDetailsSelectorStatus = "div.summary-heading:has(h5:contains(Status)) + div.summary-content" }