MP2 - V2.5 TVMosaic Provider for MP2 (2 Viewers)

joecrow

Test Group
  • Team MediaPortal
  • August 9, 2012
    2,553
    1,907
    Home Country
    Germany Germany
    Is the last screenshot with wrong time based on latest installer? Because I fixed one place where there was a 2h offset in program info. If yes, I need to check if there is more like this
    Very sorry I had not noticed the new version, have installed and confirm the time is now correct and the number order is correctly respected.(y)
    Many thanks.
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    However with latest version I can, after EPG finally works, confirm that Genres and Descriptions are not visible in MP2.
    Both is visible in TVMosaic. The automatic logo download works after clearing the cache :)
    11.jpg
    22.jpg
     
    Last edited:

    joecrow

    Test Group
  • Team MediaPortal
  • August 9, 2012
    2,553
    1,907
    Home Country
    Germany Germany
    TV Mosaic has its own location for saving recordings, c:\program Dats\dvblink\... After initially setting that location up as a media source I could schedule a recording in MP2 then play it from the "Recordings" gui. Some while later the the recordings stopped being displayed, the .ts files are still in the folder but MP2 is not displaying them even after a reimport. No idea what has gone wrong but working on it.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    However with latest version I can, after EPG finally works, confirm that Genres and Descriptions are not visible in MP2.
    This I have to check. I had added some mappings before, but maybe not everything is correctly fetched by the API. I already extended some stuff in this library.

    TV Mosaic has its own location for saving recordings, c:\program Dats\dvblink\... After initially setting that location up as a media source I could schedule a recording in MP2 then play it from the "Recordings" gui. Some while later the the recordings stopped being displayed, the .ts files are still in the folder but MP2 is not displaying them even after a reimport. No idea what has gone wrong but working on it.
    This will require some more work. While we could add the recording folder as media source (if TvMosaic is installed locally though), we depend on an metadata extractor to detect a file as "recording". We currently do this by reading the .xml next to the .ts. TvMosaic does not save such files, so we might to query the API to check if the .ts is an actual recording.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    This I have to check. I had added some mappings before, but maybe not everything is correctly fetched by the API. I already extended some stuff in this library.
    I can confirm this is a bug of the used API. It is based on DataContractSerializer which seem to have issues with Xml element order / existance. I need to investigate further...
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    The missing description of programs is fixed now. The genres should also work, but it's handled differently by TvMosaic-API. I.e. you get a program description only as:
    Code:
                <program>
                    <program_id>16046</program_id>
                    <name>Sanft schläft der Tod</name>
                    <start_time>1641410100</start_time>
                    <duration>7800</duration>
                    <short_desc>Fernsehfilm Deutschland 2016
    Der Segelurlaub auf Rügen wird für Anja und Frank Mendt zum Alptraum. Ihr Boot verschwindet mitsamt ihren beiden Kindern aus dem Hafen des Ostseebades Binz. Die Suche der Polizei bleibt erfolglos. Deshalb übernimmt der LKA-Beamte Werner Kempin den Fall. Unbedingt helfen möchte Franks ungeliebter Vater Herbert Winter, ein ehemaliger Stasi-Beamter, der nach der Wende den Polizeidienst verlassen musste. Er sieht beunruhigende Parallelen zu einer ungeklärten Entführung von Geschwistern aus dem Jahr 1988.</short_desc>
                    <language>DEU</language>
                    <cat_drama>true</cat_drama>
                </program>
    -> the genre information is <cat_drama>true</cat_drama>.
    Other genres have different property names, like "cat_news" a.s.o.

    If this is set, I translate it into :
    C#:
          List<string> genres = new List<string>();
          // Genres
          if (tvMosaicProgram.IsAction)
            genres.Add("Action");
          if (tvMosaicProgram.IsComedy)
            genres.Add("Comedy");
          if (tvMosaicProgram.IsReality)
            genres.Add("Reality");
          if (tvMosaicProgram.IsAdult)
            genres.Add("Adult");
          if (tvMosaicProgram.IsDocumentary)
            genres.Add("Documentary");
          if (tvMosaicProgram.IsDrama)
            genres.Add("Drama");
          if (tvMosaicProgram.IsEducational)
            genres.Add("Educational");
          if (tvMosaicProgram.IsHorror)
            genres.Add("Horror");
          if (tvMosaicProgram.IsKids)
            genres.Add("Kids");
          if (tvMosaicProgram.IsMovie)
            genres.Add("Movie");
          if (tvMosaicProgram.IsMusic)
            genres.Add("Music");
          if (tvMosaicProgram.IsRomance)
            genres.Add("Romance");
          if (tvMosaicProgram.IsNews)
            genres.Add("News");
          if (tvMosaicProgram.IsScifi)
            genres.Add("Science Fiction");
          if (tvMosaicProgram.IsSoap)
            genres.Add("Soap");
          if (tvMosaicProgram.IsSports)
            genres.Add("Sports");
          if (tvMosaicProgram.IsSpecial)
            genres.Add("Special");
          if (tvMosaicProgram.IsThriller)
            genres.Add("Thriller");
    
          if (genres.Count > 0)
            mpProgram.Genre = string.Join(", ", genres.ToArray());
    which can return a list of genres concatenated by ", ".

    The manual schedule is now working as well
     

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    The missing description of programs is fixed now.
    Looks good (y)
    Bild2.jpg

    The genres should also work
    I could not see any gerne information yet, though visible in TVMosaic. So this is not 100% working yet or I missed a setting (it's long time I used TV with MP2)
    Edit: The setting I remmebered is for only for "series finfos" in EPG. Genres should always show, so it's not yet working here.

    The manual schedule is now working as well
    This is also working now. I can see manual and normal single and series schedules in home content and schedules screen.
    Bild1.jpg
     
    Last edited:

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    Is there a new download with the fix?
    I built it in VisualStudio myself. But you can find the installer for this branch always in TeamCity.
    I added it to first post.
    2022-01-05: Download - Fixed availability of program description, schedules are visible and work
     
    Last edited:

    ge2301

    Lead Design MP2
  • Team MediaPortal
  • January 11, 2014
    8,705
    3,491
    Stuttgart
    Home Country
    Germany Germany
    I could not see any gerne information yet, though visible in TVMosaic. So this is not 100% working yet or I missed a setting (it's long time I used TV with MP2)
    Edit: The setting I remmebered is for only for "series finfos" in EPG. Genres should always show, so it's not yet working here.
    I just checked this point deeper and realized quickly, that there are only genre labels for TV program in WMC skin :whistle:
    I will add them also to Nereus skin via 2.4.1 branch, which can be then merged into this branch.
    So gernes also work with TVMosaic (y)
    genre.jpg
     

    Users who are viewing this thread

    Top Bottom