Small adjustment to show chapter number in chapter list (#1606)
Small adjustment to show chapter number in chapter list
This commit is contained in:
parent
15ad205843
commit
2aa04fe518
@ -5,7 +5,7 @@ ext {
|
|||||||
appName = 'Tachiyomi: Mangahub'
|
appName = 'Tachiyomi: Mangahub'
|
||||||
pkgNameSuffix = 'en.mangahub'
|
pkgNameSuffix = 'en.mangahub'
|
||||||
extClass = '.Mangahub'
|
extClass = '.Mangahub'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,7 +81,12 @@ class Mangahub : ParsedHttpSource() {
|
|||||||
override fun chapterFromElement(element: Element): SChapter {
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
val chapter = SChapter.create()
|
val chapter = SChapter.create()
|
||||||
chapter.setUrlWithoutDomain(URL(element.attr("href")).path)
|
chapter.setUrlWithoutDomain(URL(element.attr("href")).path)
|
||||||
chapter.name = element.select("span._8Qtbo span._2IG5P").first().text().replaceFirst("-", "").trim()
|
|
||||||
|
val titleHeader = element.select(".text-secondary").first()
|
||||||
|
val number = titleHeader.select("._3D1SJ").first().text()
|
||||||
|
val title = titleHeader.select("._2IG5P").first().text()
|
||||||
|
|
||||||
|
chapter.name = "$number $title"
|
||||||
chapter.date_upload = element.select("small.UovLc").first()?.text()?.let { parseChapterDate(it) } ?: 0
|
chapter.date_upload = element.select("small.UovLc").first()?.text()?.let { parseChapterDate(it) } ?: 0
|
||||||
return chapter
|
return chapter
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user