Truyenhentai18: Add chapter title (#10493)
This commit is contained in:
parent
8fded6cbf7
commit
04493e878a
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = "Truyen Hentai 18+"
|
||||
extClass = ".TruyenHentai18"
|
||||
extVersionCode = 6
|
||||
extVersionCode = 7
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user