From 71da458419ea1aab8963f1ce20852718becf997c Mon Sep 17 00:00:00 2001 From: jellyfin-bot Date: Sun, 12 Nov 2023 15:55:06 +0000 Subject: [PATCH] Update API docs --- docs/api/components_home_HomeItem.bs.html | 6 +++--- docs/api/components_home_HomeRows.bs.html | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/api/components_home_HomeItem.bs.html b/docs/api/components_home_HomeItem.bs.html index db24753c2..ebc0577cc 100644 --- a/docs/api/components_home_HomeItem.bs.html +++ b/docs/api/components_home_HomeItem.bs.html @@ -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) diff --git a/docs/api/components_home_HomeRows.bs.html b/docs/api/components_home_HomeRows.bs.html index 2205dd4ea..47aecadac 100644 --- a/docs/api/components_home_HomeRows.bs.html +++ b/docs/api/components_home_HomeRows.bs.html @@ -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