Truyenhentai18: Add chapter title (#10493)

This commit is contained in:
are-are-are 2025-09-13 21:04:44 +07:00 committed by Draff
parent 8fded6cbf7
commit 04493e878a
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = "Truyen Hentai 18+"
extClass = ".TruyenHentai18"
extVersionCode = 6
extVersionCode = 7
isNsfw = true
}

View File

@ -37,6 +37,7 @@ class ChapterWrapper(
@Serializable
class ChapterDto(
private val title: String,
val slug: String,
@SerialName("chapter_number")
private val chapterNumber: Float,
@ -45,7 +46,7 @@ class ChapterDto(
val content: String,
) {
fun toSChapter(postSlug: String) = SChapter.create().apply {
name = chapterNumber.toString()
name = title
chapter_number = chapterNumber
url = "/$postSlug/$slug.html"
date_upload = dateFormat.tryParse(createdAt)