From d3054332ebc80e078ee0695634298f1277c14e58 Mon Sep 17 00:00:00 2001 From: Vetle Ledaal Date: Sat, 14 Dec 2024 11:41:08 +0100 Subject: [PATCH] Asura Scans: fix chapter selector (#6607) --- src/en/asurascans/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/asurascans/AsuraScans.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/en/asurascans/build.gradle b/src/en/asurascans/build.gradle index e0bcfdb04..2d3605f8a 100644 --- a/src/en/asurascans/build.gradle +++ b/src/en/asurascans/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'Asura Scans' extClass = '.AsuraScans' - extVersionCode = 42 + extVersionCode = 43 } apply from: "$rootDir/common.gradle" diff --git a/src/en/asurascans/src/eu/kanade/tachiyomi/extension/en/asurascans/AsuraScans.kt b/src/en/asurascans/src/eu/kanade/tachiyomi/extension/en/asurascans/AsuraScans.kt index fb640134f..284d980f3 100644 --- a/src/en/asurascans/src/eu/kanade/tachiyomi/extension/en/asurascans/AsuraScans.kt +++ b/src/en/asurascans/src/eu/kanade/tachiyomi/extension/en/asurascans/AsuraScans.kt @@ -245,8 +245,8 @@ class AsuraScans : ParsedHttpSource(), ConfigurableSource { override fun chapterFromElement(element: Element) = SChapter.create().apply { setUrlWithoutDomain(element.selectFirst("a")!!.attr("abs:href").toPermSlugIfNeeded()) - val chNumber = element.selectFirst("h3 > a")!!.ownText() - val chTitle = element.select("h3 > a > span").joinToString(" ") { it.ownText() } + val chNumber = element.selectFirst("h3")!!.ownText() + val chTitle = element.select("h3 > span").joinToString(" ") { it.ownText() } name = if (chTitle.isBlank()) chNumber else "$chNumber - $chTitle" date_upload = try { val text = element.selectFirst("h3 + h3")!!.ownText()