Update API docs
This commit is contained in:
parent
11f8b60e11
commit
23b013f771
|
@ -17,6 +17,10 @@ sub init()
|
||||||
|
|
||||||
m.unplayedCount = m.top.findNode("unplayedCount")
|
m.unplayedCount = m.top.findNode("unplayedCount")
|
||||||
m.unplayedEpisodeCount = m.top.findNode("unplayedEpisodeCount")
|
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]
|
m.itemText.translation = [0, m.itemPoster.height + 7]
|
||||||
|
|
||||||
|
@ -46,6 +50,10 @@ sub itemContentChanged()
|
||||||
if itemData = invalid then return
|
if itemData = invalid then return
|
||||||
|
|
||||||
if itemData.type = "Movie"
|
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.itemPoster.uri = itemData.PosterUrl
|
||||||
m.itemIcon.uri = itemData.iconUrl
|
m.itemIcon.uri = itemData.iconUrl
|
||||||
m.itemText.text = itemData.Title
|
m.itemText.text = itemData.Title
|
||||||
|
@ -61,6 +69,9 @@ sub itemContentChanged()
|
||||||
end if
|
end if
|
||||||
end if
|
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.itemPoster.uri = itemData.PosterUrl
|
||||||
m.itemIcon.uri = itemData.iconUrl
|
m.itemIcon.uri = itemData.iconUrl
|
||||||
|
|
|
@ -10,6 +10,7 @@ sub init()
|
||||||
m.posterText.font.size = 30
|
m.posterText.font.size = 30
|
||||||
m.title.font.size = 25
|
m.title.font.size = 25
|
||||||
m.backdrop = m.top.findNode("backdrop")
|
m.backdrop = m.top.findNode("backdrop")
|
||||||
|
m.playedIndicator = m.top.findNode("playedIndicator")
|
||||||
|
|
||||||
m.itemPoster.observeField("loadStatus", "onPosterLoadStatusChanged")
|
m.itemPoster.observeField("loadStatus", "onPosterLoadStatusChanged")
|
||||||
|
|
||||||
|
@ -39,6 +40,10 @@ sub itemContentChanged()
|
||||||
|
|
||||||
if not isValid(itemData) then return
|
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.itemPoster.uri = itemData.PosterUrl
|
||||||
m.posterText.text = itemData.title
|
m.posterText.text = itemData.title
|
||||||
m.title.text = itemData.title
|
m.title.text = itemData.title
|
||||||
|
|
|
@ -10,6 +10,10 @@ sub init()
|
||||||
m.poster = m.top.findNode("poster")
|
m.poster = m.top.findNode("poster")
|
||||||
m.unplayedCount = m.top.findNode("unplayedCount")
|
m.unplayedCount = m.top.findNode("unplayedCount")
|
||||||
m.unplayedEpisodeCount = m.top.findNode("unplayedEpisodeCount")
|
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")
|
m.backdrop = m.top.findNode("backdrop")
|
||||||
|
|
||||||
|
@ -67,6 +71,10 @@ sub itemContentChanged() as void
|
||||||
end if
|
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
|
||||||
|
m.playedIndicator.visible = true
|
||||||
|
end if
|
||||||
|
|
||||||
if itemData.json.lookup("Type") = "Episode" and isValid(itemData.json.IndexNumber)
|
if itemData.json.lookup("Type") = "Episode" and isValid(itemData.json.IndexNumber)
|
||||||
m.title.text = StrI(itemData.json.IndexNumber) + ". " + m.title.text
|
m.title.text = StrI(itemData.json.IndexNumber) + ". " + m.title.text
|
||||||
|
|
||||||
|
|
|
@ -93,8 +93,6 @@ function ItemMetaData(id as string)
|
||||||
tmp.json = data
|
tmp.json = data
|
||||||
return tmp
|
return tmp
|
||||||
else if data.type = "Episode"
|
else if data.type = "Episode"
|
||||||
' param = { "AddPlayedIndicator": data.UserData.Played }
|
|
||||||
' imgParams.Append(param)
|
|
||||||
tmp = CreateObject("roSGNode", "TVEpisodeData")
|
tmp = CreateObject("roSGNode", "TVEpisodeData")
|
||||||
tmp.image = PosterImage(data.id, imgParams)
|
tmp.image = PosterImage(data.id, imgParams)
|
||||||
tmp.json = data
|
tmp.json = data
|
||||||
|
@ -412,9 +410,8 @@ function TVSeasons(id as string) as dynamic
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
for each item in data.Items
|
for each item in data.Items
|
||||||
imgParams = { "AddPlayedIndicator": item.UserData.Played }
|
|
||||||
tmp = CreateObject("roSGNode", "TVSeasonData")
|
tmp = CreateObject("roSGNode", "TVSeasonData")
|
||||||
tmp.image = PosterImage(item.id, imgParams)
|
tmp.image = PosterImage(item.id)
|
||||||
tmp.json = item
|
tmp.json = item
|
||||||
results.push(tmp)
|
results.push(tmp)
|
||||||
end for
|
end for
|
||||||
|
|
Loading…
Reference in New Issue
Block a user