[RU]Self/Mint chapter_number (more grouple) (#11026)

This commit is contained in:
e-shl 2022-03-06 19:47:49 +05:00 committed by GitHub
parent 1a77eee1aa
commit 2998330d4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Readmanga'
pkgNameSuffix = 'ru.readmanga'
extClass = '.Readmanga'
extVersionCode = 39
extVersionCode = 40
}
dependencies {

View File

@ -220,7 +220,7 @@ class Readmanga : 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()
@ -248,7 +248,7 @@ class Readmanga : 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 {

View File

@ -5,7 +5,7 @@ ext {
extName = 'Selfmanga'
pkgNameSuffix = 'ru.selfmanga'
extClass = '.Selfmanga'
extVersionCode = 17
extVersionCode = 18
}
dependencies {

View File

@ -124,7 +124,7 @@ class Selfmanga : ParsedHttpSource() {
override fun chapterFromElement(element: Element): 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()
@ -135,7 +135,7 @@ class Selfmanga : ParsedHttpSource() {
chapter.name = urlText
}
chapter.chapter_number = chapterInf.attr("num").toFloat() / 10
chapter.chapter_number = chapterInf.attr("data-num").toFloat() / 10
chapter.date_upload = element.select("td.hidden-xxs").last()?.text()?.let {
try {