[RU]AllHentai chapter_number (last grouple) (#11252)

This commit is contained in:
e-shl 2022-03-26 22:02:40 +05:00 committed by GitHub
parent 768c1306d6
commit 33bfbc239c
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 = 'AllHentai'
pkgNameSuffix = 'ru.allhentai'
extClass = '.AllHentai'
extVersionCode = 17
extVersionCode = 18
isNsfw = true
}

View File

@ -187,7 +187,7 @@ class AllHentai : ConfigurableSource, ParsedHttpSource() {
private fun chapterFromElement(element: Element, manga: SManga): SChapter {
val urlElement = element.select("a").first()
val chapterInf = element.select(".item-data").first()
val chapterInf = element.select("td.item-title").first()
val urlText = urlElement.text()
val chapter = SChapter.create()
@ -215,7 +215,7 @@ class AllHentai : ConfigurableSource, ParsedHttpSource() {
chapter.name = chapter.name.substringAfter("").trim()
}
chapter.chapter_number = chapterInf.attr("num").toFloat() / 10
chapter.chapter_number = chapterInf.attr("data-num").toFloat() / 10
chapter.date_upload = element.select("td.d-none").last()?.text()?.let {
try {