Fix the Library Updates only show the last chapter of updated chapters if there are several chapters is updated (#9242)

This commit is contained in:
SnowArk 2021-09-27 22:11:20 +08:00 committed by GitHub
parent e3199acb1e
commit 51f072c73f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'CopyManga'
pkgNameSuffix = 'zh.copymanga'
extClass = '.CopyManga'
extVersionCode = 19
extVersionCode = 20
}
apply from: "$rootDir/common.gradle"

View File

@ -428,11 +428,11 @@ class CopyManga : ConfigurableSource, HttpSource() {
SChapter.create().apply {
name = chapter.getString("name")
url = "/comic/$comicPathWord/chapter/${chapter.getString("id")}"
date_upload = stringToUnixTimestamp(groupLastUpdateTime)
}
)
}
}
retChapter.lastOrNull()?.date_upload = stringToUnixTimestamp(groupLastUpdateTime)
}
private fun byteArrayToHexString(byteArray: ByteArray): String {