mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-27 00:10:43 +00:00
Update API docs
This commit is contained in:
parent
182bd4d68b
commit
71da458419
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user