Merge pull request #125 from thomabx/master

Check indexNumber exist for episode
This commit is contained in:
Nick Bisby 2020-02-23 13:04:44 -06:00 committed by GitHub
commit bfe99ca2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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