Updated "OnNow" home row to default to channel images if program images are not availible

This commit is contained in:
candry7731 2023-01-18 19:52:11 -06:00
parent f591b54f9e
commit 82c1561a37

View File

@ -73,8 +73,12 @@ sub itemContentChanged()
' "Program" is from clicking on an "On Now" item on the Home Screen ' "Program" is from clicking on an "On Now" item on the Home Screen
if itemData.type = "Program" if itemData.type = "Program"
m.itemText.Text = itemData.json.name m.itemText.Text = itemData.json.name
if itemData.json.ImageURL <> invalid m.itemTextExtra.Text = itemData.json.ChannelName
m.itemPoster.uri = itemData.json.ImageURL if itemData.widePosterURL <> ""
m.itemPoster.uri = ImageURL(itemData.widePosterURL)
else
m.itemPoster.uri = ImageURL(itemData.json.ChannelId)
m.itemPoster.loadDisplayMode = "scaleToFill"
end if end if
' Set Episode title if available ' Set Episode title if available