[LXManga] Store altTitles + Revert CSS selector
This commit is contained in:
@@ -152,11 +152,12 @@ internal class LxManga(context: MangaLoaderContext) : LegacyPagedMangaParser(con
|
||||
timeZone = TimeZone.getTimeZone("GMT+7")
|
||||
}
|
||||
val author = root.selectFirst("div.mt-2:contains(Tác giả) span a")?.textOrNull()
|
||||
val altTitles = root.select("div.grow div:contains(Tên khác) span a")
|
||||
.mapNotNull { it.textOrNull() }
|
||||
.toSet()
|
||||
|
||||
return manga.copy(
|
||||
altTitles = root.selectFirst("div.grow div:contains(Tên khác) span")?.select("a.bg-gray-500")
|
||||
?.mapToSet { it.text() }
|
||||
.orEmpty(),
|
||||
altTitles = altTitles,
|
||||
state = when (root.selectFirst("div.mt-2:contains(Tình trạng) span.text-blue-500")?.text()) {
|
||||
"Đang tiến hành" -> MangaState.ONGOING
|
||||
"Đã hoàn thành" -> MangaState.FINISHED
|
||||
|
||||
Reference in New Issue
Block a user