Add new "Unmapped Program Genre" (1 Viewer)

gonzo90017

Portal Pro
September 3, 2012
238
26
25
Home Country
United States of America United States of America
I'm trying to add a new program genre but have no idea how to do it. The problem is that some genres are present in my tvguide.xml but not in the "Unmapped Program Genre" field. For example. I have the movie genre enabled. But almost all movies never get the genre coloring. Investigating further I noticed this:
Code:
<title lang="en">One More Time</title>
		<desc lang="en">London nightclub buddies Salt (Sammy Davis Jr.) and Pepper (Peter Lawford) link Pepper's dead twin to diamond smugglers.</desc>
		<credits>
			<director>Jerry Lewis</director>
			<actor>Sammy Davis Jr.</actor>
			<actor>Peter Lawford</actor>
			<actor>Esther Anderson</actor>
			<actor>Maggie Wright</actor>
			<actor>Leslie Sands</actor>
			<actor>John Wood</actor>
			<actor>Sydney Arnold</actor>
			<actor>Edward Evans</actor>
			<actor>Percy Herbert</actor>
			<actor>Bill Maynard</actor>
			<actor>Dudley Sutton</actor>
			<actor>Glyn Owen</actor>
			<actor>Lucille Soong</actor>
			<actor>Anthony Nicholls</actor>
			<actor>Allan Cuthbertson</actor>
			<actor>Cyril Luckham</actor>
			<producer>Milton Ebbins</producer>
		</credits>
		<date>1970</date>
		<category lang="en">Comedy</category>
		<category lang="en">General</category>
		<category lang="en">Movies</category>
		<episode-num system="ms_progid">1.190438143</episode-num>
		<rating system="VCHIP">
			<value>TV-PG</value>
		</rating>
		<rating system="MPAA">
			<value>PG</value>
		</rating>
		<rating system="advisory">
			<value>Adult Content</value>
		</rating>
		<rating system="advisory">
			<value>Language</value>
		</rating>
		<rating system="advisory">
			<value>Violence</value>
		</rating>
		<star-rating>
			<value>2.5/4</value>
If you notice, one of the categories is "Movies". So I would like to add and Unmapped Genre named "Movies" to get the Genre coloring.
 

gonzo90017

Portal Pro
September 3, 2012
238
26
25
Home Country
United States of America United States of America
Also noticed that some sports are rarely colored. For example Futbol and NHL Hockey. So if anyone knows i'm listening. Don't mind editing some .xml files to do it. :)
 

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hello

    So if your guide data has genres, I would have thought what you needed to do is...
    1. Open TV Server configuration.
    2. Expand the DVB EPG section and select EPG Genre Map.
    3. For your first example, select "Movie" in the top list of MediaPortal genres.
    4. The unmapped genres that TV Server has found present in your EPG data should be present in the lower right list of "unmapped program genres".
    5. Assuming the "Movies" genre is present, select and use the << button to map it.
    6. Click OK to close TV Server configuration and save.
    7. At this point, programs with that genre should be coloured as movies in the guide. Note that restarting MP may be necessary for the change to show.

    Now, having said the above...
    I have the feeling that MP *may* only support storing the first genre. In other words, for the example in the first post, MP may have only stored "Comedy" for that program. In that case, the problem is not a matter of adding unmapped genres, but a matter of recording all genres that are actually present in the source guide data.

    mm
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    *bump*
    Did you check my suggestion?
    In your example, are you saying that "One More Time" only gets labelled as "comedy", not as "movies" or "general"?
     

    gonzo90017

    Portal Pro
    September 3, 2012
    238
    26
    25
    Home Country
    United States of America United States of America
    I have the feeling that MP *may* only support storing the first genre. In other words, for the example in the first post, MP may have only stored "Comedy" for that program.
    I think this is the issue since "Movies" does not appear under "Unmapped Genres".
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    What method/plugin(s) do you use for EPG grabbing?
    I guess WebEPG and the XMLTV plugin?
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Okay, thanks.
    I confirm that the XMLTV plugin only reads the first genre/category:
    https://github.com/MediaPortal/Medi...brary/Plugins/XmlTvImport/XMLTVImport.cs#L442

    However, even if it read all the genres, the MP database only stores one genre per program. So you're out of luck there.

    Having said that, there may be another way to partially achieve what you want.
    According to the code here:
    https://github.com/MediaPortal/Medi...ibrary/TvPlugin/TvPlugin/TvGuideBase.cs#L3920

    ...programs with an MPAA classification (like the example above) can be automatically mapped to the genre marked as "movie". By that I mean in TV Server you need to have a genre enabled with a clapboard in the movie column.

    Make sense?

    mm
     

    gonzo90017

    Portal Pro
    September 3, 2012
    238
    26
    25
    Home Country
    United States of America United States of America
    Thanks for the workaround but I had already tried that.
    atkjtl.jpg


    The problem is that not all movies come with an MPAA rating. Especially some of the older ones. That's the main reason I looked into being able to add unmapped categories such as "Movies". But even if they did, that still wouldn't solve the problem with the guide coloring for some sports programs. Hopefully in the future both XMLTV and Mediaportal can add the functionalities to make this possible.
     

    Users who are viewing this thread

    Top Bottom