Fix *chan tags extraction

pull/6/head
Koitharu 4 years ago
parent 6ab5743f66
commit ee0a2e598f
No known key found for this signature in database
GPG Key ID: 8E861F8CE6E7CE27

@ -129,7 +129,7 @@ internal abstract class ChanParser(source: MangaSource) : MangaParser(source) {
override suspend fun getTags(): Set<MangaTag> { override suspend fun getTags(): Set<MangaTag> {
val domain = getDomain() 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") val root = doc.body().selectFirst("div.main_fon")?.getElementById("side")
?.select("ul")?.last() ?: throw ParseException("Cannot find root") ?.select("ul")?.last() ?: throw ParseException("Cannot find root")
return root.select("li.sidetag").mapToSet { li -> return root.select("li.sidetag").mapToSet { li ->

Loading…
Cancel
Save