MangaFire: Fix chapter name (#3369)

fix chapter name
This commit is contained in:
bapeey 2024-06-03 05:52:37 -05:00 committed by GitHub
parent 6a9f73066e
commit 43d15cd21b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.MangaFireFactory'
themePkg = 'mangareader'
baseUrl = 'https://mangafire.to'
overrideVersionCode = 3
overrideVersionCode = 4
isNsfw = true
}

View File

@ -177,6 +177,7 @@ open class MangaFire(
val element = elements[i]
val number = element.attr("data-number").toFloatOrNull() ?: -1f
if (chapter.chapter_number != number) throw Exception("Chapter number doesn't match. Try updating again.")
chapter.name = element.select(Evaluator.Tag("span"))[0].ownText()
val date = element.select(Evaluator.Tag("span"))[1].ownText()
chapter.date_upload = try {
dateFormat.parse(date)!!.time