Pixiv: fix chapter dates (#17289)

This commit is contained in:
Solitai7e 2023-07-29 02:31:34 +00:00 committed by GitHub
parent ffd04a5671
commit 2a47132cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Pixiv' extName = 'Pixiv'
pkgNameSuffix = 'all.pixiv' pkgNameSuffix = 'all.pixiv'
extClass = '.PixivFactory' extClass = '.PixivFactory'
extVersionCode = 5 extVersionCode = 6
isNsfw = true isNsfw = true
} }

View File

@ -348,7 +348,7 @@ class Pixiv(override val lang: String) : HttpSource() {
SChapter.create().apply { SChapter.create().apply {
setUrlWithoutDomain("/artworks/${illust.id!!}") setUrlWithoutDomain("/artworks/${illust.id!!}")
name = illust.title ?: "(null)" name = illust.title ?: "(null)"
date_upload = illust.upload_timestamp ?: 0 date_upload = (illust.upload_timestamp ?: 0) * 1000
chapter_number = i.toFloat() chapter_number = i.toFloat()
} }
} }