Merge pull request #187 from neilsb/search-episodes-without-index

Ensure index number exists on Episode search results
This commit is contained in:
Charles Ewert 2020-04-29 19:40:37 -04:00 committed by GitHub
commit ff732dd4a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ function itemContentChanged() as void
m.poster = m.top.findNode("poster")
itemData = m.top.itemContent
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
end if
m.poster.uri = itemData.posterUrl