Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyfin-bot committed Nov 12, 2023
1 parent 182bd4d commit 71da458
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api/components_home_HomeItem.bs.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@
if itemData.type = "Program"
m.itemText.Text = itemData.json.name
m.itemTextExtra.Text = itemData.json.ChannelName
if itemData.widePosterURL <> ""
m.itemPoster.uri = ImageURL(itemData.widePosterURL)
if itemData.usePoster
m.itemPoster.uri = itemData.thumbnailURL
else
m.itemPoster.uri = ImageURL(itemData.json.ChannelId)
m.itemPoster.loadDisplayMode = "scaleToFill"
end if
m.itemPoster.loadDisplayMode = "scaleToFill"

' Set Episode title if available
if isValid(itemData.json.EpisodeTitle)
Expand Down
10 changes: 10 additions & 0 deletions docs/api/components_home_HomeRows.bs.html
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,23 @@
' remake row using the new data
row = CreateObject("roSGNode", "HomeRow")
row.title = tr("On Now")
itemSize = [464, 331]
row.imageWidth = 464
for each item in itemData
row.usePoster = false
if (not isValid(item.thumbnailURL) or item.thumbnailURL = "") and isValid(item.json) and isValid(item.json.imageURL)
item.thumbnailURL = item.json.imageURL
row.usePoster = true
row.imageWidth = 180
itemSize = [188, 331]
end if
item.usePoster = row.usePoster
item.imageWidth = row.imageWidth
row.appendChild(item)
end for

' replace the old row
updateSizeArray(itemSize, m.homeSectionIndexes.livetv, "replace")
m.top.content.replaceChild(row, m.homeSectionIndexes.livetv)

end if
Expand Down

0 comments on commit 71da458

Please sign in to comment.