[RU]Self/Mint chapter_number (more grouple) (#11026)
This commit is contained in:
parent
1a77eee1aa
commit
2998330d4e
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Readmanga'
|
extName = 'Readmanga'
|
||||||
pkgNameSuffix = 'ru.readmanga'
|
pkgNameSuffix = 'ru.readmanga'
|
||||||
extClass = '.Readmanga'
|
extClass = '.Readmanga'
|
||||||
extVersionCode = 39
|
extVersionCode = 40
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -220,7 +220,7 @@ class Readmanga : ConfigurableSource, ParsedHttpSource() {
|
||||||
|
|
||||||
private fun chapterFromElement(element: Element, manga: SManga): SChapter {
|
private fun chapterFromElement(element: Element, manga: SManga): SChapter {
|
||||||
val urlElement = element.select("a").first()
|
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 urlText = urlElement.text()
|
||||||
|
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
|
@ -248,7 +248,7 @@ class Readmanga : ConfigurableSource, ParsedHttpSource() {
|
||||||
chapter.name = chapter.name.substringAfter("…").trim()
|
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 {
|
chapter.date_upload = element.select("td.d-none").last()?.text()?.let {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Selfmanga'
|
extName = 'Selfmanga'
|
||||||
pkgNameSuffix = 'ru.selfmanga'
|
pkgNameSuffix = 'ru.selfmanga'
|
||||||
extClass = '.Selfmanga'
|
extClass = '.Selfmanga'
|
||||||
extVersionCode = 17
|
extVersionCode = 18
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -124,7 +124,7 @@ class Selfmanga : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element): SChapter {
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
val urlElement = element.select("a").first()
|
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 urlText = urlElement.text()
|
||||||
|
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
|
@ -135,7 +135,7 @@ class Selfmanga : ParsedHttpSource() {
|
||||||
chapter.name = urlText
|
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 {
|
chapter.date_upload = element.select("td.hidden-xxs").last()?.text()?.let {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue