Merge pull request #7031 from FineFindus/fix/all-caught-up-upcoming

fix(StreamItem): correctly determine upcoming videos
This commit is contained in:
Bnyro 2025-01-26 14:25:25 +01:00 committed by GitHub
commit c0ee29abaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ data class StreamItem(
val isShort: Boolean = false
) : Parcelable {
val isLive get() = (duration == null) || (duration <= 0L)
val isUpcoming get() = uploaded < System.currentTimeMillis()
val isUpcoming get() = uploaded > System.currentTimeMillis()
fun toLocalPlaylistItem(playlistId: String): LocalPlaylistItem {
return LocalPlaylistItem(