We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 34a89a7 + 0124090 commit 01f47d3Copy full SHA for 01f47d3
1 file changed
app/src/main/java/com/github/libretube/db/obj/Download.kt
@@ -4,6 +4,7 @@ import androidx.room.ColumnInfo
4
import androidx.room.Entity
5
import androidx.room.PrimaryKey
6
import com.github.libretube.api.obj.StreamItem
7
+import com.github.libretube.extensions.toMillis
8
import kotlinx.datetime.LocalDate
9
import java.nio.file.Path
10
@@ -25,6 +26,7 @@ data class Download(
25
26
shortDescription = description,
27
thumbnail = thumbnailPath?.toUri()?.toString(),
28
duration = duration,
29
+ uploaded = uploadDate?.toMillis() ?: 0L,
30
uploadedDate = uploadDate?.toString(),
31
uploaderName = uploader,
32
)
0 commit comments