From 146fbc5fef0c35d0f2a849c27b2a4bc279e71825 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Thu, 17 Oct 2024 21:31:31 -0400 Subject: [PATCH] don't show resumable items in Next Up --- components/home/LoadItemsTask.bs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/components/home/LoadItemsTask.bs b/components/home/LoadItemsTask.bs index b918a8df7..be405b0c4 100644 --- a/components/home/LoadItemsTask.bs +++ b/components/home/LoadItemsTask.bs @@ -93,9 +93,12 @@ sub loadItems() data = getJson(resp) if isValid(data) and isValid(data.Items) for each item in data.Items - tmp = CreateObject("roSGNode", "HomeData") - tmp.json = item - results.push(tmp) + ' don't show resumable items in Next Up + if isValid(item.UserData) and isValid(item.UserData.PlaybackPositionTicks) and item.UserData.PlaybackPositionTicks = 0 + tmp = CreateObject("roSGNode", "HomeData") + tmp.json = item + results.push(tmp) + end if end for if data.Items.Count() = 0 checkViewAll = true