Titan BINGIE v1 (UPDATED 08/2019)
(2019-03-30, 15:27)joeyd2424 Wrote: Lol I’m not that great at explaining things so I’ll give it another shot. So you got the 5 star rating system which is used universally. (You have a settingthat says “prefer star rating” instead of using the 78% match scheme) What I’m curious about is how would I alter each rating for a specific genre. So say a horror movie in my library has a 3 star rating. Instead of three star icons, I would use 3 skull icons. Or a romantic comedy would use 4 hearts to define its rating. Or slasher films using butcher knives. Or a comedy uses 3 laughing heads instead. I still don’t know if I explained that well. It basically replaces the ratings icons with a genre specific set. Probably a huge amount of work for a small visual enhancement that no one else would probably care about lol
Ok got it.
I believe it is actually pretty easy. the hard part is the graphics (which i hate).
You'd need to create images for each genre you want to apply this, it'd be better to create a resource to not have it hard-wired to a specific skin and lower the load on skin textures.
You need to decide for which genres are you making this in the first place, and how much images for each (are you supporting percents? then you need 100 images per each!)
Then where the stars are set in the skin, general flow of things would be to check for genre existence in item with some infolabel/s. and give the path of the images with the genre as variable in the path.
Say VARIABLE=GENRE, then -> imagepath=$INFO[ListItem.Rating,resource://<your-resource>/$GENRE-VARIABLE$/,.png]
This is the general scheme of things......
Issues to consider:
- fallback when no genre exists or can't be pulled
- fallback when no images for this genres (there could be infinite genre names in theory)
- How to pull ONE genre from genre list (listitem.genre)
- If you have a movie that is both 'horror' and 'comedy' for ex., how would you choose for which genre images to show?
- listitem.rating by kodi returns x.x format so depending on the rating system you may need to alter the result.  for ex, you decide to have 5 stars system with 1-5 as integers then you need to make 1.0,1.1,...,1.9 return 1 and so on. this can be easily done (i did same thing to convert to percentage-based) but is a little disgusting code-wise Smile
Reply


Messages In This Thread
RE: Titan BINGIE MODE - Kodi 18 - by Hooacer - 2019-09-12, 15:13
RE: Titan BINGIE MODE - Kodi 18 - by Hooacer - 2019-09-12, 20:59
RE: Titan BINGIE MODE - Kodi 18 - by Shaishi - 2021-05-18, 16:52
RE: Titan BINGIE MODE - Kodi 18 - by ilip33 - 2020-01-13, 00:25
RE: Titan BINGIE MODE - Kodi 18 - by Symmetre - 2020-03-02, 00:39
RE: Titan BINGIE MODE - Kodi 18 - by mardukL - 2018-08-22, 06:09
RE: Titan BINGIE MODE - Kodi 18 - by mardukL - 2018-08-26, 11:20
RE: Titan BINGIE MODE - Kodi 18 - by cscott1 - 2018-09-25, 13:22
RE: Titan BINGIE MODE - Kodi 18 - by mardukL - 2018-09-25, 13:25
RE: Titan BINGIE MODE - Kodi 18 - by szabi - 2018-08-22, 13:47
Titan BINGIE MODE - Kodi 18 - by wsx1 - 2018-08-23, 12:50
RE: Titan BINGIE MODE - Kodi 18 - by Comma - 2018-08-24, 16:04
RE: Titan BINGIE MODE - Kodi 18 - by Comma - 2018-08-23, 16:28
RE: Titan BINGIE MODE - Kodi 18 - by rhoop206 - 2018-08-23, 20:21
RE: Titan BINGIE MODE - Kodi 18 - by Picard - 2018-08-24, 01:00
RE: Titan BINGIE MODE - Kodi 18 - by Comma - 2018-08-24, 18:31
RE: Titan BINGIE MODE - Kodi 18 - by minhgi - 2018-08-24, 20:40
RE: Titan BINGIE MODE - Kodi 18 - by mardukL - 2018-08-25, 13:22
RE: Titan BINGIE MODE - Kodi 18 - by CK77 - 2020-06-08, 08:55
trailers playing wrong content - by trubio2 - 2019-01-31, 03:13
RE: Titan BINGIE v1 (UPDATED 25/03/2019) - by cartman.dos - 2019-03-30, 16:02
Oops A Mistake - by shaktoo - 2020-07-04, 15:13
Titan BINGIE v1 (UPDATED 08/2019) - by oijkn - 2021-02-14, 20:27
Logout Mark Read Team Forum Stats Members Help
Titan BINGIE v1 (UPDATED 08/2019)26