diff --git a/components/ItemGrid/GridItem.brs b/components/ItemGrid/GridItem.brs index 2438ce59..3f40cc6d 100644 --- a/components/ItemGrid/GridItem.brs +++ b/components/ItemGrid/GridItem.brs @@ -49,7 +49,7 @@ sub itemContentChanged() m.itemPoster.uri = itemData.PosterUrl m.itemText.text = itemData.Title else - print "Unhandled Item Type: " + itemData.type + print "Unhandled Grid Item Type: " + itemData.type end if 'If Poster not loaded, ensure "blue box" is shown until loaded diff --git a/components/home/HomeItem.brs b/components/home/HomeItem.brs index 0f682374..06391013 100644 --- a/components/home/HomeItem.brs +++ b/components/home/HomeItem.brs @@ -56,6 +56,20 @@ sub itemContentChanged() m.itemTextExtra.visible = true m.itemTextExtra.font.size = 22 + ' "Program" is from clicking on an "On Now" item on the Home Screen + if itemData.type = "Program" + m.itemText.Text = itemData.json.name + if itemData.json.ImageURL <> invalid + m.itemPoster.uri = itemData.json.ImageURL + end if + + ' Set Episode title if available + if itemData.json.EpisodeTitle <> invalid + m.itemTextExtra.text = itemData.json.EpisodeTitle + end if + + return + end if if itemData.type = "Episode" m.itemText.text = itemData.json.SeriesName @@ -156,7 +170,7 @@ sub itemContentChanged() return end if - print "Unhandled Item Type: " + itemData.type + print "Unhandled Home Item Type: " + itemData.type end sub diff --git a/components/home/HomeItem.xml b/components/home/HomeItem.xml index 71d723e9..4fce477a 100644 --- a/components/home/HomeItem.xml +++ b/components/home/HomeItem.xml @@ -12,4 +12,7 @@