mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #7104 from Bnyro/master
fix: wrong date for downloaded items in watch history
This commit is contained in:
commit
01f47d3a02
@ -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