[RU]ComX fix naming chapters (#15933)
This commit is contained in:
parent
a07b750d33
commit
724848090a
|
@ -6,7 +6,7 @@ ext {
|
|||
extName = 'Com-X'
|
||||
pkgNameSuffix = 'ru.comx'
|
||||
extClass = '.ComX'
|
||||
extVersionCode = 23
|
||||
extVersionCode = 24
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
|
|
@ -305,6 +305,9 @@ class ComX : ParsedHttpSource() {
|
|||
if (chapter.name.isEmpty()) {
|
||||
chapter.name = it.jsonObject["title"]!!.jsonPrimitive.content
|
||||
}
|
||||
if (chapter.name == "[перевода не существует]") {
|
||||
chapter.name = it.jsonObject["title"]!!.jsonPrimitive.content + " " + "[перевода не существует]"
|
||||
}
|
||||
chapter.date_upload = simpleDateFormat.parse(it.jsonObject["date"]!!.jsonPrimitive.content)?.time ?: 0L
|
||||
chapter.chapter_number = it.jsonObject["posi"]!!.jsonPrimitive.float
|
||||
chapter.setUrlWithoutDomain("/readcomix/" + data["news_id"] + "/" + it.jsonObject["id"]!!.jsonPrimitive.content + ".html")
|
||||
|
|
Loading…
Reference in New Issue