Merge pull request #187 from neilsb/search-episodes-without-index
Ensure index number exists on Episode search results
This commit is contained in:
commit
ff732dd4a9
|
@ -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