Update API docs

This commit is contained in:
jellyfin-bot 2023-11-12 15:55:06 +00:00
parent 182bd4d68b
commit 71da458419
2 changed files with 13 additions and 3 deletions

View File

@ -94,12 +94,12 @@ sub itemContentChanged()
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)

View File

@ -511,13 +511,23 @@ sub updateOnNowItems()
' 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