[Pending] - XMLTV import Icon, save to DB, expose to skins

Discussion in 'Submit: code patches (MediaPortal/TV-Server/etc.)' started by Blue Lightning, August 5, 2017.

  1. Blue Lightning

    Blue Lightning Portal Member

    October 8, 2011
    Likes Received:
    +43 / 0
    Home Country:
    Australia Australia
    Show System Specs
    Patch for MP1 attached

    * The database can store an Icon value
    * xmltvimport will save an icon src when importing data (if available)
    * Skins can access the icon

    In xmltv data, programmes can optionally include an icon element with a src attribute. Example: <icon src="404 - MEDIAPORTAL"> This is part of the xmltv standard.
    Skins can access the attribute in the TV guide as #TV.Guide.Icon, the list of scheduled recording as #TV.Scheduled.Icon, and the TV search as #TV.Search.Icon

    This version of the patch is untested (I've had so much trouble compiling the TV server without any modification) but I've been running these changes all year and it works well.
    This other patch is useful because it'll save the images temporarily instead of redownloading every session. But it is not required. The two patches can function on their own.
    The benefit of this patch is that skins will be able to access a programme's icon (logo/thumbnail/image) from the data provider (if supplied) and display it in the guide, search results, schedule. The current image displayed is usually the channel logo via .Thumb, and this has not changed.

    Attached Files:

    • Like Like x 2

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!