Posts: 322
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!
------------------------------------------
Windows 11 Pro / Intel i9 13900k with an RTX 4070/ 64 gigs RAM/ MCE Remote /45 Tb storage / via HDMI to a 80" OLED TV / with just over 7,400 movies
Have you entered your 5 Movies? - Support
themoviedb.org as
THE best open source movie information site.
Posts: 322
Joined: Dec 2008
Reputation:
9
Ronnie, thank you! Much appreciated, and so friggin' simple!
------------------------------------------
Windows 11 Pro / Intel i9 13900k with an RTX 4070/ 64 gigs RAM/ MCE Remote /45 Tb storage / via HDMI to a 80" OLED TV / with just over 7,400 movies
Have you entered your 5 Movies? - Support
themoviedb.org as
THE best open source movie information site.
Posts: 15,282
Joined: Jan 2009
Reputation:
739
ronie
Team-Kodi Member
Posts: 15,282
why are you using a multiimage control?
Posts: 18,209
Joined: Aug 2007
Reputation:
715
Hitcher
Team-Kodi Member
Posts: 18,209
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: 322
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....
------------------------------------------
Windows 11 Pro / Intel i9 13900k with an RTX 4070/ 64 gigs RAM/ MCE Remote /45 Tb storage / via HDMI to a 80" OLED TV / with just over 7,400 movies
Have you entered your 5 Movies? - Support
themoviedb.org as
THE best open source movie information site.