Ensure index number exists on Episode search results
This commit is contained in:
parent
ddae9b5862
commit
c84f7f1da8
|
@ -65,7 +65,7 @@ function itemContentChanged() as void
|
||||||
m.poster = m.top.findNode("poster")
|
m.poster = m.top.findNode("poster")
|
||||||
itemData = m.top.itemContent
|
itemData = m.top.itemContent
|
||||||
m.title.text = itemData.title
|
m.title.text = itemData.title
|
||||||
if itemData.json.lookup("Type") = "Episode"
|
if itemData.json.lookup("Type") = "Episode" and itemData.json.IndexNumber <> invalid
|
||||||
m.title.text = StrI(itemData.json.IndexNumber) + ". " + m.title.text
|
m.title.text = StrI(itemData.json.IndexNumber) + ". " + m.title.text
|
||||||
end if
|
end if
|
||||||
m.poster.uri = itemData.posterUrl
|
m.poster.uri = itemData.posterUrl
|
||||||
|
|
Loading…
Reference in New Issue
Block a user