Fix *chan tags extraction

This commit is contained in:
2022-03-17 14:51:01 +02:00
parent 6ab5743f66
commit ee0a2e598f

View File

@@ -129,7 +129,7 @@ internal abstract class ChanParser(source: MangaSource) : MangaParser(source) {
override suspend fun getTags(): Set<MangaTag> {
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 ->