No color in TVGuide when XMLTV without DVB EPG (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,369
    Kyiv
    Home Country
    Ukraine Ukraine
    C#:
          MpGenre mpGenre = null;
          if (IsMPAA(program.Classification))
          {
            mpGenre = _mpGenres.Find(x => x.IsMovie == true);
          }
          else
          {
            mpGenre = _mpGenres.Find(x => x.MappedProgramGenres.Contains(program.Genre));
          }
    
          // If no mapped mp genre could be found or the found genre is disabled then return the default genre color.
          if (mpGenre == null || !mpGenre.Enabled)
          {
            return defaultColor;
          }
    XML TV Guide or not contains Genre property, or contains different Genre property than mapped in Configurator ...
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,884
    1,956
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #13
    @ajs :
    I'm pretty sure you are right.
    I will add logs to check that, when I will have time.
    Also, I need to initialize the MpTvDb.
    If it works as you explain then, the problem could be because XMLTV were always used and DVB EPG never (it was case for me since years).
    That's why, programs colors were unmapped.
    At least, the mapped program genres should not be in DVB EPG section.
    Follow the red arrow to understand what I mean :

    zz.png
     

    framug

    Super Moderator
  • Team MediaPortal
  • January 31, 2005
    5,884
    1,956
    South of France
    Home Country
    France France
    • Thread starter
    • Moderator
    • #18
    OK but please, take it at a joke for the moment, since I'm not sure.
    When I will have time, I would try to delete MpTvDb, use XMLTV without DVP EPG enabled to see if unmapped genres are populated with XMLTV category.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    15,492
    10,369
    Kyiv
    Home Country
    Ukraine Ukraine
    OK but please, take it at a joke for the moment, since I'm not sure.
    I see no problems in moving the section if necessary, but because If I don’t use the TV part in the Media Portal, I will refrain from any offers. But if it’s more logical to take out this section separately, then I do not mind. Rather, I do not care where it will be :)
     

    Users who are viewing this thread

    Top Bottom