- Thread starter
- #141
Hi All,
So, a flood of commentary ;-) Not sure I got the entire gist but I do want to acknowledge that the wiki instructions are crap ;-) I need to re-write the instructions to start from the beginning of setup with a series of steps that users can take. The bottom line with the wiki instructions is that my use of examples/samples has confused people. In my examples I use *my* genres from schedules direct. Your genres are likely to be different as you have already found. Also, the SkinSettings.xml file overrides (by design) MediaPortal.xml for the tvguidecolors section. It would be better to have all the colors defined in MediaPortal.xml and leave the use of SkinSettings.xml as an advanced feature (I like it ;-) In order to prevent the SkinSettings.xml from overriding MediaPortal.xml you'll need to delete the "tvguidecolors" section from SkinSettings.xml (in the Avalon3779 skin directory).
Indeed the (EPG) genre names and other program information are read from the TV database directly from the MediaPortal Configuration tool. This is the only way to guarantee that the genre names you choose to map and then color actually affect your guide (since every EPG provider's genre names will vary).
MediaPortal.xml may start out with no "genremap", "genreoptions", and "tvguidecolors" sections. Perhaps this should be the default. The MediaPortal Configuration tool will automatically create the sections based on user actions. However, MediaPortal.xml could be "seeded" with the following template sections (just no mappings!) The genre names that appear in the "genremap" and "tvguidecolors" represent an example of the genres to be colored in the tv guide. In fact, I stole these names and colors from WMC (shhh!) Seemed like a decent place to start.
With MediaPortal.xml seeded (or not) with these sections then you can launch the MediaPortal Configuration tool and either map your own EPG genres to one of the seeded 7 tv guide genres (Documentary, Kids, Movie, Music, News, Special, or Sports). If you don't like the "seeded" 7 tv guide genres then you can click on the name and click the Remove button to delete it. You can then add your own using the Add button. When you have a set of tv guide genres identified you can then set the "on now" and "on later" colors for each by highlighting the tv guide genre and clicking the appropriate color button. When that's all done you must map your EPG genre names to your tv guide genre names. When you click on a tv guide genre the Unmapped Genres list should populate with all available EPG genres. Use the arrow buttons to map and unmap. If you do not map EPG genres to tv guide genres then no guide coloring will occur for tv guide genre colors.
The check box about "specifying MPAA rated as a movie"; when it is checked then there is no reason to map any EPG genres to the tv guide genres because the implementation will look at the tv program attributes and if it has a movie rating then it will automatically map that program as a movie. There is a column in the TV database that contains the movie rating/classification as read from the EPG provider so this is handy for this feature. Otherwise, there is really no way to positively identify a program as a movie. Using the text "MPAA" in the check box label is admittedly biased; suggest another, please ;-)
Since the implementation has the MediaPortal Configuration tool reading the genre and other program information from the TV database I'm not sure I completely understand issues associated with a client server (not single-seat) implementation. Sure, the firewall needs to allow for communication back to the server but besides that I'm not sure I notice a problem unique to this implementation. I do recognize that each client needs its own MediaPortal.xml file and so users with multi-seat implementation will need to configure for each client. But this is not a unique problem associated with TV guide coloring. There should be a more generalized solution designed and built if needed.
I'll re-write the wiki page soon.
Thanks for everyone's testing!!
So, a flood of commentary ;-) Not sure I got the entire gist but I do want to acknowledge that the wiki instructions are crap ;-) I need to re-write the instructions to start from the beginning of setup with a series of steps that users can take. The bottom line with the wiki instructions is that my use of examples/samples has confused people. In my examples I use *my* genres from schedules direct. Your genres are likely to be different as you have already found. Also, the SkinSettings.xml file overrides (by design) MediaPortal.xml for the tvguidecolors section. It would be better to have all the colors defined in MediaPortal.xml and leave the use of SkinSettings.xml as an advanced feature (I like it ;-) In order to prevent the SkinSettings.xml from overriding MediaPortal.xml you'll need to delete the "tvguidecolors" section from SkinSettings.xml (in the Avalon3779 skin directory).
Indeed the (EPG) genre names and other program information are read from the TV database directly from the MediaPortal Configuration tool. This is the only way to guarantee that the genre names you choose to map and then color actually affect your guide (since every EPG provider's genre names will vary).
MediaPortal.xml may start out with no "genremap", "genreoptions", and "tvguidecolors" sections. Perhaps this should be the default. The MediaPortal Configuration tool will automatically create the sections based on user actions. However, MediaPortal.xml could be "seeded" with the following template sections (just no mappings!) The genre names that appear in the "genremap" and "tvguidecolors" represent an example of the genres to be colored in the tv guide. In fact, I stole these names and colors from WMC (shhh!) Seemed like a decent place to start.
With MediaPortal.xml seeded (or not) with these sections then you can launch the MediaPortal Configuration tool and either map your own EPG genres to one of the seeded 7 tv guide genres (Documentary, Kids, Movie, Music, News, Special, or Sports). If you don't like the "seeded" 7 tv guide genres then you can click on the name and click the Remove button to delete it. You can then add your own using the Add button. When you have a set of tv guide genres identified you can then set the "on now" and "on later" colors for each by highlighting the tv guide genre and clicking the appropriate color button. When that's all done you must map your EPG genre names to your tv guide genre names. When you click on a tv guide genre the Unmapped Genres list should populate with all available EPG genres. Use the arrow buttons to map and unmap. If you do not map EPG genres to tv guide genres then no guide coloring will occur for tv guide genre colors.
Code:
<section name="genremap">
<entry name="Documentary"></entry>
<entry name="Kids"></entry>
<entry name="Movie"></entry>
<entry name="Music"></entry>
<entry name="News"></entry>
<entry name="Special"></entry>
<entry name="Sports"></entry>
</section>
<section name="genreoptions">
<entry name="specifympaaratedasmovie">yes</entry>
</section>
<section name="tvguidecolors">
<entry name="guidecolorchannelbutton">ff0e517b</entry>
<entry name="guidecolorchannelbuttonselected">Green</entry>
<entry name="guidecolorprogramselected">Green</entry>
<entry name="guidecolorprogramended">Gray</entry>
<entry name="guidecolorborderhighlight">99ffffff</entry>
<entry name="defaultgenre">ff1d355b,ff0e517b</entry>
<entry name="Documentary">Chocolate,Chocolate</entry>
<entry name="Kids">Aqua,Aqua</entry>
<entry name="Movie">Purple,Purple</entry>
<entry name="Music">Maroon,Maroon</entry>
<entry name="News">LightGreen,LightGreen</entry>
<entry name="Special">Gold,Gold</entry>
<entry name="Sports">DarkGreen,DarkGreen</entry>
</section>
The check box about "specifying MPAA rated as a movie"; when it is checked then there is no reason to map any EPG genres to the tv guide genres because the implementation will look at the tv program attributes and if it has a movie rating then it will automatically map that program as a movie. There is a column in the TV database that contains the movie rating/classification as read from the EPG provider so this is handy for this feature. Otherwise, there is really no way to positively identify a program as a movie. Using the text "MPAA" in the check box label is admittedly biased; suggest another, please ;-)
Since the implementation has the MediaPortal Configuration tool reading the genre and other program information from the TV database I'm not sure I completely understand issues associated with a client server (not single-seat) implementation. Sure, the firewall needs to allow for communication back to the server but besides that I'm not sure I notice a problem unique to this implementation. I do recognize that each client needs its own MediaPortal.xml file and so users with multi-seat implementation will need to configure for each client. But this is not a unique problem associated with TV guide coloring. There should be a more generalized solution designed and built if needed.
I'll re-write the wiki page soon.
Thanks for everyone's testing!!
Last edited: