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

Status
Not open for further replies.

Hawkeye

Portal Pro
January 29, 2005
548
87
Halle (Saale)
Home Country
Germany Germany
Outside the TVE I honestly can't see a great number of MP2 plugins using a logo service.
It may not be used there yet (not sure atm) but what about the TV series view or trakt? Just 2 examples where TV logos could be used outside the TVE...
 

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    The "download design" parts is new to me. The current Object Model for the DB does no contain any info about this and I also don't know what makes up a Design? (xml? Images? Processing Instructions?) I thought this was something only the client knew as different applications have different skins and so on?

    If we want this provided by the Webservice we need to define what to store and the interface methods to retrieve it ;)

    The "suggest channel/logo/alias page" is slowly forming, will see if I can put something up in the evening so you can play with it.

    One more thing that came to mind thinking about the webservice method to get a logo:
    What if you search for a channel logo and the Alias is defined multiple times without a (matching) region for different channels? I think Vasilich suggested we would present the choices to the user and let them decide? If you want something without user interaction then you can either take the first or none - both probably not ideal?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Any progress on the webservice part? :)
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    Hi, I have been able to setup the current state on my WebServer: http://channellogos.nocrosshair.de/ListChannels.aspx
    The Webservice URL is: http://channellogos.nocrosshair.de/ChannelManager.svc
    (You shoul dbe able to use this url directly with VS2013 add service reference).

    If you want to add a new logo, use the Suggest->New Page. After that a suggestion must be approved from the Suggest->List page before it is visible in the Channels list.
    The web is not pretty - it's current purpose is to test the functionality :)
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Great! I'm trying to build the client side code into the LogoManager project this weekend.

    How can we start the "migration" of all current logos into the new system? This should be done by a kind of tool/converter, as we cannot enter all logos and information by hand ;)

    @Vasilich @Edalex @offbyone
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,394
    1,170
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    It would be nice to use logomapping. XML files from existing repositories. As in don't know how the things are stored on the server - i cannot write converter for it now. So either offbyone can explain what is required for server side, and it can write converter, or he writes converher himself - in latter case i would be glad to help or explain the existing structure
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,959
    1,270
    Saratov
    Home Country
    Russian Federation Russian Federation
    Yeah, it is easy to download all logos from all repos by script when offbyone will be ready.
    I think one of us who will download them could just zip them and send to offbyone along with description file.
    First of all, I'll try to check for duplicates (NatGeo etc) as we need to discuss what logos should be preferred i.e (British>>Russian)
     
    Last edited:

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I would rather like that we test the current implementation first before we import everything into it.
    Are you happy with how to "suggest" a new channel/logo/alias? Is is as you want and need? What is missing?
    Does the webservice return what you expect?
    Can we add logos with critical cases to test how the logic behaves?
    We still haven't decided on the webservies methods and signatures.

    Once we have a solid DB Schema and webservice/site logic, I can write an importer for the current mapping xml files.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Are you happy with how to "suggest" a new channel/logo/alias? Is is as you want and need? What is missing?
    For this question I have no answers, I work more on the consuming side. I think the opinions of Vasilich and Edalex are more important here :)

    Does the webservice return what you expect?
    I just did the first test:
    The service works and returns a list of guids for logos. I then built an url to load them from repo via HttpClient. Then the processing was done on stream base.
    Result is attached.

    We still haven't decided on the webservies methods and signatures.
    After this tests I would prefer get the logo images directly in the response:
    C#:
    Dictionary<string, byte[]> GetLogos(string[] names,...)
    This would remove the additional roundtrip to actually fetch the logo.


    And here it is, the first created logo, "on-the-fly" :)


    zdf.png
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom