From 23b013f771b9bb58b040d49c2d56960f47e73123 Mon Sep 17 00:00:00 2001 From: jellyfin-bot Date: Tue, 2 Jan 2024 03:50:13 +0000 Subject: [PATCH] Update API docs --- docs/api/components_ItemGrid_GridItem.bs.html | 11 +++++++++++ docs/api/components_ItemGrid_GridItemSmall.bs.html | 5 +++++ docs/api/components_ListPoster.bs.html | 8 ++++++++ docs/api/source_api_Items.bs.html | 5 +---- 4 files changed, 25 insertions(+), 4 deletions(-) diff --git a/docs/api/components_ItemGrid_GridItem.bs.html b/docs/api/components_ItemGrid_GridItem.bs.html index 1b2d2eb90..39640cbd1 100644 --- a/docs/api/components_ItemGrid_GridItem.bs.html +++ b/docs/api/components_ItemGrid_GridItem.bs.html @@ -17,6 +17,10 @@ m.unplayedCount = m.top.findNode("unplayedCount") m.unplayedEpisodeCount = m.top.findNode("unplayedEpisodeCount") + m.playedIndicator = m.top.findNode("playedIndicator") + m.checkmark = m.top.findNode("checkmark") + m.checkmark.width = 90 + m.checkmark.height = 60 m.itemText.translation = [0, m.itemPoster.height + 7] @@ -46,6 +50,10 @@ if itemData = invalid then return if itemData.type = "Movie" + if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played + m.playedIndicator.visible = true + end if + m.itemPoster.uri = itemData.PosterUrl m.itemIcon.uri = itemData.iconUrl m.itemText.text = itemData.Title @@ -61,6 +69,9 @@ end if end if end if + if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played = true + m.playedIndicator.visible = true + end if m.itemPoster.uri = itemData.PosterUrl m.itemIcon.uri = itemData.iconUrl diff --git a/docs/api/components_ItemGrid_GridItemSmall.bs.html b/docs/api/components_ItemGrid_GridItemSmall.bs.html index 8e9616ac5..2c911d29f 100644 --- a/docs/api/components_ItemGrid_GridItemSmall.bs.html +++ b/docs/api/components_ItemGrid_GridItemSmall.bs.html @@ -10,6 +10,7 @@ m.posterText.font.size = 30 m.title.font.size = 25 m.backdrop = m.top.findNode("backdrop") + m.playedIndicator = m.top.findNode("playedIndicator") m.itemPoster.observeField("loadStatus", "onPosterLoadStatusChanged") @@ -39,6 +40,10 @@ if not isValid(itemData) then return + if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played + m.playedIndicator.visible = true + end if + m.itemPoster.uri = itemData.PosterUrl m.posterText.text = itemData.title m.title.text = itemData.title diff --git a/docs/api/components_ListPoster.bs.html b/docs/api/components_ListPoster.bs.html index 998d63097..c227eae6c 100644 --- a/docs/api/components_ListPoster.bs.html +++ b/docs/api/components_ListPoster.bs.html @@ -10,6 +10,10 @@ m.poster = m.top.findNode("poster") m.unplayedCount = m.top.findNode("unplayedCount") m.unplayedEpisodeCount = m.top.findNode("unplayedEpisodeCount") + m.playedIndicator = m.top.findNode("playedIndicator") + m.checkmark = m.top.findNode("checkmark") + m.checkmark.width = 90 + m.checkmark.height = 60 m.backdrop = m.top.findNode("backdrop") @@ -67,6 +71,10 @@ end if end if + if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played + m.playedIndicator.visible = true + end if + if itemData.json.lookup("Type") = "Episode" and isValid(itemData.json.IndexNumber) m.title.text = StrI(itemData.json.IndexNumber) + ". " + m.title.text diff --git a/docs/api/source_api_Items.bs.html b/docs/api/source_api_Items.bs.html index ce100291e..6e75e0370 100644 --- a/docs/api/source_api_Items.bs.html +++ b/docs/api/source_api_Items.bs.html @@ -93,8 +93,6 @@ tmp.json = data return tmp else if data.type = "Episode" - ' param = { "AddPlayedIndicator": data.UserData.Played } - ' imgParams.Append(param) tmp = CreateObject("roSGNode", "TVEpisodeData") tmp.image = PosterImage(data.id, imgParams) tmp.json = data @@ -412,9 +410,8 @@ results = [] for each item in data.Items - imgParams = { "AddPlayedIndicator": item.UserData.Played } tmp = CreateObject("roSGNode", "TVSeasonData") - tmp.image = PosterImage(item.id, imgParams) + tmp.image = PosterImage(item.id) tmp.json = item results.push(tmp) end for