Check indexNumber exist for episode

This commit is contained in:
thomabx 2020-02-23 10:58:24 -08:00
parent 9dc047f25c
commit d5a9cf4d75

View File

@ -6,7 +6,12 @@ end sub
function itemContentChanged() as void
item = m.top.itemContent
itemData = item.json
m.top.findNode("title").text = itemData.indexNumber.toStr() + ". " + item.title
if itemData.indexNumber <> invalid then
indexNumber = itemData.indexNumber.toStr() + ". "
else
indexNumber = ""
end if
m.top.findNode("title").text = indexNumber + item.title
m.top.findNode("poster").uri = item.posterURL
m.top.findNode("overview").text = item.overview