Fix mangachan search

This commit is contained in:
Koitharu
2020-03-15 15:48:29 +02:00
parent f0b3400103
commit 64e17d4086

View File

@@ -28,7 +28,7 @@ abstract class ChanRepository : RemoteMangaRepository() {
val root = doc.body().selectFirst("div.main_fon").getElementById("content")
?: throw ParseException("Cannot find root")
return root.select("div.content_row").mapNotNull { row ->
val a = row.selectFirst("div.manga_row1")?.selectFirst("a.title_link")
val a = row.selectFirst("div.manga_row1")?.selectFirst("h2")?.selectFirst("a")
?: return@mapNotNull null
val href = a.attr("href").withDomain(domain)
Manga(