From fafaed7e563f6f9acc0e1d5d54b4f5515f0e26cd Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sun, 26 Jan 2025 12:25:23 +0100 Subject: [PATCH] fix(StreamItem): correctly determine upcoming videos Fixes a bug, where the check for upcoming videos was inverted, i.e. checking if the video had already been published. This caused the all-caught-up indicator to appear incorrectly. Ref: https://github.com/libre-tube/LibreTube/pull/7008/commits/c3be28e23bdc5a13d9c1ce0beb9bd9c599f195d9 --- app/src/main/java/com/github/libretube/api/obj/StreamItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/api/obj/StreamItem.kt b/app/src/main/java/com/github/libretube/api/obj/StreamItem.kt index 5cad11077d..a2a12ccde1 100644 --- a/app/src/main/java/com/github/libretube/api/obj/StreamItem.kt +++ b/app/src/main/java/com/github/libretube/api/obj/StreamItem.kt @@ -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(