fix: videos in watch history uploaded in 1970

This commit is contained in:
Bnyro 2024-09-03 18:34:40 +02:00
parent 8ddd52d96f
commit 68e371a8bb

View File

@ -73,7 +73,7 @@ object StreamsExtractor {
visibility = resp.privacy.name.lowercase(),
duration = resp.duration,
uploadTimestamp = resp.uploadDate.offsetDateTime().toInstant().toKotlinInstant(),
uploaded = resp.uploadDate.offsetDateTime().toEpochSecond(),
uploaded = resp.uploadDate.offsetDateTime().toEpochSecond() * 1000,
thumbnailUrl = resp.thumbnails.maxBy { it.height }.url,
relatedStreams = resp.relatedItems.filterIsInstance<StreamInfoItem>().map {
StreamItem(