From d3975f1ed090b3b2b18306b20d6ffb28eb7398e3 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Fri, 11 Oct 2019 21:32:16 -0400 Subject: [PATCH] Add unplayed count to collections --- source/api/Items.brs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/api/Items.brs b/source/api/Items.brs index 69acc36d..bcc79593 100644 --- a/source/api/Items.brs +++ b/source/api/Items.brs @@ -111,6 +111,10 @@ function ItemList(library_id = invalid as string, params = {}) tmp.json = item results.push(tmp) else if item.type = "BoxSet" + if item.UserData.UnplayedItemCount > 0 then + param = { "UnplayedCount" : item.UserData.UnplayedItemCount } + imgParams.Append(param) + end if tmp = CreateObject("roSGNode", "CollectionData") tmp.image = PosterImage(item.id, imgParams) tmp.json = item