From c84f7f1da8f76fdd2d84f904379f6b671a161592 Mon Sep 17 00:00:00 2001 From: Neil Burrows Date: Wed, 29 Apr 2020 08:40:12 +0100 Subject: [PATCH] Ensure index number exists on Episode search results --- components/ListPoster.brs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ListPoster.brs b/components/ListPoster.brs index 158c97ff..8322aa8f 100644 --- a/components/ListPoster.brs +++ b/components/ListPoster.brs @@ -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