Skip to content

Commit

Permalink
Merge pull request #7031 from FineFindus/fix/all-caught-up-upcoming
Browse files Browse the repository at this point in the history
fix(StreamItem): correctly determine upcoming videos
  • Loading branch information
Bnyro authored Jan 26, 2025
2 parents 4a5fe25 + fafaed7 commit c0ee29a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c0ee29a

Please sign in to comment.