[EPG] - Use data-provided value for #TV.Guide.thumb texture? | Page 2

Discussion in 'Improvement Suggestions' started by Blue Lightning, September 7, 2016.

  1. Blue Lightning

    Blue Lightning Portal Member

    Joined:
    October 8, 2011
    Messages:
    49
    Likes Received:
    26
    Ratings:
    +43 / 0
    Home Country:
    Australia Australia
    Show System Specs
    This is what I've been able to do so far: http://pastebin.com/BCeKV0zv (ignore the commented out bit, I needed that early on to avoid crashing)
    The database needs ALTER TABLE program ADD COLUMN icon VARCHAR(200) NOT NULL DEFAULT ""; ALTER TABLE recording ADD COLUMN icon VARCHAR(200) NOT NULL DEFAULT "";

    The change makes the xmltv data importer take an <icon src=""> from the data and store that in the database, and show the URL in the TV guide if there is one. I tried to add it to search but that is incomplete (and it should be on Recorded TV too). It also doesn't cache the image outside the MP session but I think that's beyond what I'm going to be able to do with this.
    In the guide the icon is available directly via TV.Guide.Icon or if you use TV.Guide.thumb (any existing skin) it'll use the Icon if there is one (otherwise uses the channel logo or default image as normal)



    Can anyone take this and improve/extend it?
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Blue Lightning

    Blue Lightning Portal Member

    Joined:
    October 8, 2011
    Messages:
    49
    Likes Received:
    26
    Ratings:
    +43 / 0
    Home Country:
    Australia Australia
    Show System Specs
    I've gone for a different approach because patching all .thumb properties to use the URL (and work with all existing skins) is not something I can do. So instead what I've done is just added an extra skin property, leaving .thumb as it is. The new property is .Icon and is available as #TV.Guide.Icon #TV.Scheduled.Icon and #TV.Search.Icon (for the TV Guide, the list of scheduled programs, and search results respectively). Skins would be able to use these if they like but no existing skins should be impacted.

    EDIT: I've submitted it as a patch here https://forum.team-mediaportal.com/...m-xmltv-import-make-available-to-skins.135228
    Please use (or improve on it) in MediaPortal or a plugin.
    Sample: https://i.imgur.com/1kuAmLY.png
     
    Last edited: October 10, 2016
    • Like Like x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!