Skip to content

Commit

Permalink
Merge pull request #969 from candry7731/OnNow-Poster
Browse files Browse the repository at this point in the history
Updated "OnNow" home row to default to channel images if program images are not availible
  • Loading branch information
1hitsong authored Jan 27, 2023
2 parents 6bcb940 + 82c1561 commit feab0a2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions components/home/HomeItem.brs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ sub itemContentChanged()
' "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
m.itemTextExtra.Text = itemData.json.ChannelName
if itemData.widePosterURL <> ""
m.itemPoster.uri = ImageURL(itemData.widePosterURL)
else
m.itemPoster.uri = ImageURL(itemData.json.ChannelId)
m.itemPoster.loadDisplayMode = "scaleToFill"
end if

' Set Episode title if available
Expand Down

0 comments on commit feab0a2

Please sign in to comment.