Label actor episodes with Series Name, and season & episode numbers

Fixes #1649
This commit is contained in:
1hitsong 2024-01-13 17:22:50 -05:00
parent 3b888d40a0
commit 3811f298d3

View File

@ -183,9 +183,15 @@ function buildRow(rowTitle as string, items, imgWdth = 0)
row = CreateObject("roSGNode", "ContentNode") row = CreateObject("roSGNode", "ContentNode")
row.Title = tr(rowTitle) row.Title = tr(rowTitle)
for each mov in items for each mov in items
mov.Id = mov.json.Id if LCase(mov.json.type) = "episode"
mov.labelText = mov.json.SeriesName
mov.subTitle = `S${mov.json.ParentIndexNumber}:E${mov.json.IndexNumber} - ${mov.json.Name}`
else
mov.labelText = mov.json.Name mov.labelText = mov.json.Name
mov.subTitle = mov.json.ProductionYear mov.subTitle = mov.json.ProductionYear
end if
mov.Id = mov.json.Id
mov.Type = mov.json.Type mov.Type = mov.json.Type
if imgWdth > 0 if imgWdth > 0
mov.imageWidth = imgWdth mov.imageWidth = imgWdth