Skip to content

Commit 01f47d3

Browse files
authored
Merge pull request libre-tube#7104 from Bnyro/master
fix: wrong date for downloaded items in watch history
2 parents 34a89a7 + 0124090 commit 01f47d3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • app/src/main/java/com/github/libretube/db/obj

app/src/main/java/com/github/libretube/db/obj/Download.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import androidx.room.ColumnInfo
44
import androidx.room.Entity
55
import androidx.room.PrimaryKey
66
import com.github.libretube.api.obj.StreamItem
7+
import com.github.libretube.extensions.toMillis
78
import kotlinx.datetime.LocalDate
89
import java.nio.file.Path
910

@@ -25,6 +26,7 @@ data class Download(
2526
shortDescription = description,
2627
thumbnail = thumbnailPath?.toUri()?.toString(),
2728
duration = duration,
29+
uploaded = uploadDate?.toMillis() ?: 0L,
2830
uploadedDate = uploadDate?.toString(),
2931
uploaderName = uploader,
3032
)

0 commit comments

Comments
 (0)