Merge pull request #7104 from Bnyro/master

fix: wrong date for downloaded items in watch history
This commit is contained in:
Bnyro 2025-02-15 14:48:27 +01:00 committed by GitHub
commit 01f47d3a02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,
)