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

Does Container.Content do what I think it does?

$
0
0
I've been trying to make this work for longer than I want to admit, so I hope this is the right forum for this.

When I have a movie or TV Show that is not rated or unrated, I'm trying to split the ratings so that an unrated movie will show a NR graphic and an unrated TV Show will show a TV-NR graphic. The problem seems to be when the movie or TV show doesn't have a rating at all, so the MPAA string is empty. When that happens, I only get the NR (movie) graphic. I thought I could fix it with a Container.Content call, but that doesn't seem to be working like I thought it would, and I'm not seeing anything else to use to test if the item is a movie or TV Show. Can someone take a look at these two lines and tell me what's wrong with them? Thanks!

<value condition="String.IsEmpty(ListItem.MPAA) | String.Contains(ListItem.MPAA,NR) | String.IsEqual(ListItem.MPAA,Rated)">NR.png</value>

<value condition="!Container.Content(movies) + (String.IsEmpty(ListItem.MPAA) | String.Contains(ListItem.MPAA,NR) | String.Contains(ListItem.MPAA,Not Rated))">TV-NR.png</value>

Viewing all articles
Browse latest Browse all 1817

Trending Articles