mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 15:30:31 +05:30
fix: wrong date for downloaded items in watch history
This commit is contained in:
parent
34a89a7bb2
commit
0124090827
@ -4,6 +4,7 @@ import androidx.room.ColumnInfo
|
||||
import androidx.room.Entity
|
||||
import androidx.room.PrimaryKey
|
||||
import com.github.libretube.api.obj.StreamItem
|
||||
import com.github.libretube.extensions.toMillis
|
||||
import kotlinx.datetime.LocalDate
|
||||
import java.nio.file.Path
|
||||
|
||||
@ -25,6 +26,7 @@ data class Download(
|
||||
shortDescription = description,
|
||||
thumbnail = thumbnailPath?.toUri()?.toString(),
|
||||
duration = duration,
|
||||
uploaded = uploadDate?.toMillis() ?: 0L,
|
||||
uploadedDate = uploadDate?.toString(),
|
||||
uploaderName = uploader,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user