Idea: Port LogoManager into common library and use it inside MP2-Server plugin (4 Viewers)

Status
Not open for further replies.

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Ok, here it is: the first test plugin using the new LogoManager repository and library!

    (We currently have only one logo for my available channels ;))
    03_slimtv_result.jpg


    I've attached a MP2-Server plugin to replace the existing SlimTV.Resources plugin. You will only get so many logos as are listed here: http://channellogos.nocrosshair.de/ListChannels.aspx.

    But downloading and processing already works well, we only need to fill the repo.

    Again my question to @Vasilich, @Edalex and @offbyone, how can we easily migrate content to new service?
    We need as many information from source as possible and should avoid redundancies of logos.

    Edit:
    Sources pushed to: https://github.com/MediaPortal/MediaPortal-2/commit/d2d3724271e5
     

    Attachments

    • SlimTv.Resources.7z
      31.7 KB
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I would like links to all the current mapping files, so I can take a look at them and try to see how an importer will work.
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Here a few samples I picked out of all the xmls to discuss the meaning:
    Code:
      <Channel>
        <Item Name="Amazing Life">
          <Satellite>36E+</Satellite>
          <Satellite>36E3k</Satellite>
        </Item>
        <Item Name="AM LIFE">
          <Satellite>Cable</Satellite>
        </Item>
        <File>amazing_life.png</File>
      </Channel>
      <Channel>
        <Item Name="Amedia Premium HD">
          <Satellite>36E+</Satellite>
        </Item>
        <Item Name="Amedia Premium">
          <Provider>HTB+</Provider>
        </Item>
        <File>AMedia_Premium_HD.png</File>
      </Channel>
      <Channel>
        <Item Name="13th Street" />
        <Item Name="13 th Street" />
        <Item Name="13 th Street (KD)" />
        <File>13th Street.png</File>
      </Channel>
      <Channel>
        <Item Name="1 contre 100">
          <Satellite />
        </Item>
        <File>1 contre 100.png</File>
      </Channel>

    A Channel has 1 or more Item (which are in the new DB Alias) and always one File (which is the Logo in the new DB).
    The Item has a contre attribute, what does that mean? I am guessing it can be skipped?

    The Item has children: Satellite or Provider (both 1 or more times).
    We haven't specified these in the new DB. If I remember correctly, you said you are not using this info, or MP is not providing it?
    Should I incorporate the provider/satellite in the new DB?

    Is the logo always a png? Or should I be prepared to download gif, jpg?
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,959
    1,270
    Saratov
    Home Country
    Russian Federation Russian Federation
    The Item has children: Satellite or Provider (both 1 or more times).
    Yeah, we didn't use Satellite/Provider in plugin's code that's why is not unified but this field helped to understand where is alias came from. Originally we used Satellite but decide that is should calls Provider.
    I meant such field asking you about Origin field in your db here:
    1) "Origin" should be not for file but for alias. So we could known in which cable network/on which satellite this channels has such name.
    Is the logo always a png? Or should I be prepared to download gif, jpg?
    File format should properly handle tranceparency so bmp, jpg, gif is not our choice. ;)
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Did you misread this? To me it looks like part of the name itself.
    Woops yes :) Scratch that question.


    File format should properly handle tranceparency so bmp, jpg, gif is not our choice.
    My question was: When writing the importer, is this always a png? Or do I need to code something that takes care of other file formats? I did not check every File tag in all xmls ;)

    The Origin is a property for a Logo to define the image origin/source.

    When I write the importer and skip the Provider tag, then this info is gone after we switched to new DB. But if we don't use it anyway we can skip this?
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,959
    1,270
    Saratov
    Home Country
    Russian Federation Russian Federation
    My question was: When writing the importer, is this always a png? Or do I need to code something that takes care of other file formats? I did not check every File tag in all xmls
    Yes, i got it. Just to confirm, PNG only.

    When I write the importer and skip the Provider tag, then this info is gone after we switched to new DB. But if we don't use it anyway we can skip this?
    Well, it's your choice to have it in new db or skip it. My personal opinion that it could be helpful.
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,394
    1,170
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    My personal opinion that it could be helpful.
    have to agree here - it helped me several times to understand where the alias came from (especially in Germany almost every cable provider tries to name channels in its own way, so this provider info helps - check german mapping file)
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom