Skip to content

Commit

Permalink
Asura Scans: fix chapter selector (#6607)
Browse files Browse the repository at this point in the history
  • Loading branch information
vetleledaal authored Dec 14, 2024
1 parent 4e781e0 commit a074c18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/en/asurascans/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Asura Scans'
extClass = '.AsuraScans'
extVersionCode = 42
extVersionCode = 43
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ class AsuraScans : ParsedHttpSource(), ConfigurableSource {

override fun chapterFromElement(element: Element) = SChapter.create().apply {
setUrlWithoutDomain(element.selectFirst("a")!!.attr("abs:href").toPermSlugIfNeeded())
val chNumber = element.selectFirst("h3 > a")!!.ownText()
val chTitle = element.select("h3 > a > span").joinToString(" ") { it.ownText() }
val chNumber = element.selectFirst("h3")!!.ownText()
val chTitle = element.select("h3 > span").joinToString(" ") { it.ownText() }
name = if (chTitle.isBlank()) chNumber else "$chNumber - $chTitle"
date_upload = try {
val text = element.selectFirst("h3 + h3")!!.ownText()
Expand Down

0 comments on commit a074c18

Please sign in to comment.