Asura Scans: fix chapter selector (#6607)
This commit is contained in:
parent
e91f02af02
commit
d3054332eb
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Asura Scans'
|
extName = 'Asura Scans'
|
||||||
extClass = '.AsuraScans'
|
extClass = '.AsuraScans'
|
||||||
extVersionCode = 42
|
extVersionCode = 43
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -245,8 +245,8 @@ class AsuraScans : ParsedHttpSource(), ConfigurableSource {
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
||||||
setUrlWithoutDomain(element.selectFirst("a")!!.attr("abs:href").toPermSlugIfNeeded())
|
setUrlWithoutDomain(element.selectFirst("a")!!.attr("abs:href").toPermSlugIfNeeded())
|
||||||
val chNumber = element.selectFirst("h3 > a")!!.ownText()
|
val chNumber = element.selectFirst("h3")!!.ownText()
|
||||||
val chTitle = element.select("h3 > a > span").joinToString(" ") { it.ownText() }
|
val chTitle = element.select("h3 > span").joinToString(" ") { it.ownText() }
|
||||||
name = if (chTitle.isBlank()) chNumber else "$chNumber - $chTitle"
|
name = if (chTitle.isBlank()) chNumber else "$chNumber - $chTitle"
|
||||||
date_upload = try {
|
date_upload = try {
|
||||||
val text = element.selectFirst("h3 + h3")!!.ownText()
|
val text = element.selectFirst("h3 + h3")!!.ownText()
|
||||||
|
|
Loading…
Reference in New Issue