From ee0a2e598f4f2be74f3ef8a9dbd7a43947d5bd07 Mon Sep 17 00:00:00 2001 From: Koitharu Date: Thu, 17 Mar 2022 14:51:01 +0200 Subject: [PATCH] Fix *chan tags extraction --- src/main/kotlin/org/koitharu/kotatsu/parsers/site/ChanParser.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/ChanParser.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/ChanParser.kt index 4113e3eb..0de28e21 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/ChanParser.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/ChanParser.kt @@ -129,7 +129,7 @@ internal abstract class ChanParser(source: MangaSource) : MangaParser(source) { override suspend fun getTags(): Set { val domain = getDomain() - val doc = context.httpGet("https://$domain/catalog").parseHtml() + val doc = context.httpGet("https://$domain/mostfavorites&sort=manga").parseHtml() val root = doc.body().selectFirst("div.main_fon")?.getElementById("side") ?.select("ul")?.last() ?: throw ParseException("Cannot find root") return root.select("li.sidetag").mapToSet { li ->