Skip to content

Commit

Permalink
don't show resumable items in Next Up
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Oct 18, 2024
1 parent f90975c commit 146fbc5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/home/LoadItemsTask.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 146fbc5

Please sign in to comment.