Merge pull request #125 from thomabx/master
Check indexNumber exist for episode
This commit is contained in:
commit
bfe99ca2b3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user