mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
fix: videos in watch history uploaded in 1970
This commit is contained in:
parent
8ddd52d96f
commit
68e371a8bb
@ -73,7 +73,7 @@ object StreamsExtractor {
|
|||||||
visibility = resp.privacy.name.lowercase(),
|
visibility = resp.privacy.name.lowercase(),
|
||||||
duration = resp.duration,
|
duration = resp.duration,
|
||||||
uploadTimestamp = resp.uploadDate.offsetDateTime().toInstant().toKotlinInstant(),
|
uploadTimestamp = resp.uploadDate.offsetDateTime().toInstant().toKotlinInstant(),
|
||||||
uploaded = resp.uploadDate.offsetDateTime().toEpochSecond(),
|
uploaded = resp.uploadDate.offsetDateTime().toEpochSecond() * 1000,
|
||||||
thumbnailUrl = resp.thumbnails.maxBy { it.height }.url,
|
thumbnailUrl = resp.thumbnails.maxBy { it.height }.url,
|
||||||
relatedStreams = resp.relatedItems.filterIsInstance<StreamInfoItem>().map {
|
relatedStreams = resp.relatedItems.filterIsInstance<StreamInfoItem>().map {
|
||||||
StreamItem(
|
StreamItem(
|
||||||
|
Loading…
Reference in New Issue
Block a user