From e5a6b828538f64d27e16b67235416155f370cf23 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Tue, 24 Jan 2023 09:11:09 +0200 Subject: [PATCH] [Grouple] Fix chapter link extraction --- .../koitharu/kotatsu/parsers/site/grouple/GroupleParser.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/grouple/GroupleParser.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/grouple/GroupleParser.kt index 006aac28..492229a1 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/grouple/GroupleParser.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/grouple/GroupleParser.kt @@ -162,7 +162,7 @@ internal abstract class GroupleParser( isNsfw = root.select(".alert-warning").any { it.ownText().contains(NSFW_ALERT) }, chapters = root.selectFirst("div.chapters-link")?.selectFirst("table") ?.select("tr:has(td > a)")?.asReversed()?.mapChapters { i, tr -> - val a = tr.selectFirst("a") ?: return@mapChapters null + val a = tr.selectFirst("a.chapter-link") ?: return@mapChapters null val href = a.attrAsRelativeUrl("href") var translators = "" val translatorElement = a.attr("title") @@ -176,7 +176,7 @@ internal abstract class GroupleParser( name = tr.selectFirst("a")?.text().orEmpty().removePrefix(manga.title).trim(), number = i + 1, url = href, - uploadDate = dateFormat.tryParse(tr.selectFirst("td.d-none")?.text()), + uploadDate = dateFormat.tryParse(tr.selectFirst("td.date")?.text()), scanlator = translators, source = source, branch = null,