fix MangaKawaii chapter list (#5892)

This commit is contained in:
Riztard Lanthorn 2021-02-17 20:39:01 +07:00 committed by GitHub
parent d25f2cc4c3
commit cafb133aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Mangakawaii'
pkgNameSuffix = 'fr.mangakawaii'
extClass = '.MangaKawaii'
extVersionCode = 20
extVersionCode = 21
libVersion = '1.2'
}

View File

@ -39,7 +39,7 @@ class MangaKawaii : ParsedHttpSource() {
override fun popularMangaSelector() = "a.hot-manga__item "
override fun latestUpdatesSelector() = ".section__list-group li div.section__list-group-left"
override fun searchMangaSelector() = "h1 + ul a[href*=manga]"
override fun chapterListSelector() = "tr[class*=volume-]"
override fun chapterListSelector() = "tr[class*=volume-]:has(td)"
override fun popularMangaNextPageSelector() = "a[rel=next]"
override fun latestUpdatesNextPageSelector(): String? = null
@ -82,7 +82,7 @@ class MangaKawaii : ParsedHttpSource() {
chapter.name = element.select("td.table__chapter").select("span").text().trim()
chapter.chapter_number = element.select("td.table__chapter").select("span").text().substringAfter("Chapitre").replace(Regex("""[,-]"""), ".").trim().toFloatOrNull()
?: -1F
chapter.date_upload = parseDate(element.select("td.table__date").text())
chapter.date_upload = element.select("td.table__date").firstOrNull()?.text()?.let { parseDate(it) } ?: 0
return chapter
}