Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1803

Bug - String.IsEmpty(ListItem.Ratings(foo)) outside of DialogVideoInfo causes crashes.

$
0
0
I'm wondering if anyone else has come across this?

If I reference ListItem.Ratings(rating) in a visible condition, it causes crashes when opening library windows outside of DialogVideoInfo (reproducible every time opening MyPics for me).

e.g. I have a visible condition as part of a media info list view.
Code:
<visible>!String.IsEmpty(ListItem.Ratings(metacritic))</visible>

If this code is included in MyPics it will crash when open MyPics every time.
Haven't tested on Leia -- also note on Leia the syntax changed to drop the s so it is ListItem.Rating(foo)

You test this quite easily by adding the following to MyPics.xml and then trying to open it:
Code:
<control type="group">
    <visible>!String.IsEmpty(ListItem.Ratings(metacritic))</visible>
</control>

The same thing happens if with Integer.IsGreater

Viewing all articles
Browse latest Browse all 1803

Trending Articles