2017-06-30, 20:51
Hoping that somebody can point me in the right direction to solve this one:-
So I've added duration and mpaa ratings directly following the plot on my epg screen, both of which work, but for the mpaa ratings the result is sometimes blank because it does not exist when being scraped. Under normal circumstances I would use a fallback (Unknown) if no entry was found, but can't really figure out how to achieve this action when using multiple controls together like I've done below:-
Hope it makes sense what I'm trying to achieve here. To be honest, I'm not even entirely sure this is really right way to do things in the first instance, but any help would be very much appreciated.
Cheers
So I've added duration and mpaa ratings directly following the plot on my epg screen, both of which work, but for the mpaa ratings the result is sometimes blank because it does not exist when being scraped. Under normal circumstances I would use a fallback (Unknown) if no entry was found, but can't really figure out how to achieve this action when using multiple controls together like I've done below:-
PHP Code:
<label>$INFO[ListItem.Plot] [COLOR white]Duration: [/COLOR][COLOR cornflowerblue] $INFO[ListItem.Duration] Hrs/Min[/COLOR] [COLOR white]Rating: [/COLOR][COLOR cornflowerblue]$INFO[Window(Home).Property(SkinHelper.ListItem.MPAA)][/COLOR]</label>
Hope it makes sense what I'm trying to achieve here. To be honest, I'm not even entirely sure this is really right way to do things in the first instance, but any help would be very much appreciated.
Cheers