Posts: 307
Joined: Dec 2008
Reputation:
9
2016-08-21, 22:25
(This post was last modified: 2016-08-21, 22:26 by JohnWPB.)
I am trying to display an image based on the genre of a movie. If the movie is "children Friendly" for instance, then have an image display on the screen.
I have an image now that will display "Trailer Available" above the cover art in the fan art screen, and that was fairly simple to do. But that is simply a yes/no to display if a trailer is available. The genre is a bit more complex, as it needs to be displayed based on one of a hundred different ones.
Any help is greatly appreciated!
------------------------------------------
Intel Quad core 3.8 Ghz / Windows 11 Pro / 32 gigs RAM/ MCE Remote /20 Tb storage / Intel Iris 550 chip-set outputting 4k via HDMI to a 80" LED TV / just over 5,800 movies
Have you entered your 5 Movies? - Support
themoviedb.org as
THE best open source movie information site.
Posts: 307
Joined: Dec 2008
Reputation:
9
Ronnie, thank you! Much appreciated, and so friggin' simple!
------------------------------------------
Intel Quad core 3.8 Ghz / Windows 11 Pro / 32 gigs RAM/ MCE Remote /20 Tb storage / Intel Iris 550 chip-set outputting 4k via HDMI to a 80" LED TV / just over 5,800 movies
Have you entered your 5 Movies? - Support
themoviedb.org as
THE best open source movie information site.
Posts: 15,271
Joined: Jan 2009
Reputation:
729
ronie
Team-Kodi Member
Posts: 15,271
why are you using a multiimage control?
Posts: 17,554
Joined: Aug 2007
Reputation:
597
Hitcher
Team-Kodi Member
Posts: 17,554
When trying to bug fix these kind of things myself I will display a label somewhere that contains the strings I'm using. So in your case try replacing or adding $INFO[ListItem.Genre] to the $INFO[ListItem.Label] control.
Posts: 307
Joined: Dec 2008
Reputation:
9
The label idea is a good one, thank you!
I do have one movie for testing with just a single genre, and still no image is displayed.
Is there no array[x] (If genre[1] = "family) or "If contains ="x" logic available in the skinning language that could work around the multiple genres? There has to be a sting that contains the genre's individually I would think.... It would seem odd to read all the genre's from the XML into a single variable....
------------------------------------------
Intel Quad core 3.8 Ghz / Windows 11 Pro / 32 gigs RAM/ MCE Remote /20 Tb storage / Intel Iris 550 chip-set outputting 4k via HDMI to a 80" LED TV / just over 5,800 movies
Have you entered your 5 Movies? - Support
themoviedb.org as
THE best open source movie information site.