Add unplayed count to collections

This commit is contained in:
Charles Ewert 2019-10-11 21:32:16 -04:00
parent f42222c4a3
commit d3975f1ed0

View File

@ -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