[RU]Self/Mint chapter_number (more grouple) (#11026)
This commit is contained in:
parent
1a77eee1aa
commit
2998330d4e
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Readmanga'
|
||||
pkgNameSuffix = 'ru.readmanga'
|
||||
extClass = '.Readmanga'
|
||||
extVersionCode = 39
|
||||
extVersionCode = 40
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
|||
extName = 'Selfmanga'
|
||||
pkgNameSuffix = 'ru.selfmanga'
|
||||
extClass = '.Selfmanga'
|
||||
extVersionCode = 17
|
||||
extVersionCode = 18
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue