ensure vars are valid - fix crashlog line 80
This commit is contained in:
parent
45209b148e
commit
cc1e3be6b2
|
@ -83,7 +83,11 @@ sub itemContentChanged()
|
||||||
else if itemData.type = "Episode"
|
else if itemData.type = "Episode"
|
||||||
m.itemPoster.uri = itemData.PosterUrl
|
m.itemPoster.uri = itemData.PosterUrl
|
||||||
m.itemIcon.uri = itemData.iconUrl
|
m.itemIcon.uri = itemData.iconUrl
|
||||||
|
if isValid(itemData?.json?.SeriesName)
|
||||||
m.itemText.text = itemData.json.SeriesName + " - " + itemData.Title
|
m.itemText.text = itemData.json.SeriesName + " - " + itemData.Title
|
||||||
|
else
|
||||||
|
m.itemText.text = itemData.Title
|
||||||
|
end if
|
||||||
else if itemData.type = "MusicArtist"
|
else if itemData.type = "MusicArtist"
|
||||||
m.itemPoster.uri = itemData.PosterUrl
|
m.itemPoster.uri = itemData.PosterUrl
|
||||||
m.itemText.text = itemData.Title
|
m.itemText.text = itemData.Title
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component name="GridItem" extends="Group">
|
<component name="GridItem" extends="Group">
|
||||||
<children>
|
<children>
|
||||||
<maskGroup id="posterMask" maskUri="pkg:/images/postermask.png" scaleRotateCenter="[145, 212.5]" scale="[0.85,0.85]">
|
<maskGroup id="posterMask" maskUri="pkg:/images/postermask.png" scaleRotateCenter="[145, 212.5]" scale="[0.85,0.85]">
|
||||||
|
@ -20,4 +20,5 @@
|
||||||
</interface>
|
</interface>
|
||||||
<script type="text/brightscript" uri="GridItem.brs" />
|
<script type="text/brightscript" uri="GridItem.brs" />
|
||||||
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
<script type="text/brightscript" uri="pkg:/source/utils/config.brs" />
|
||||||
|
<script type="text/brightscript" uri="pkg:/source/utils/misc.brs" />
|
||||||
</component>
|
</component>
|
Loading…
Reference in New Issue
Block a user