[EPG] Use data-provided value for #TV.Guide.thumb texture? (1 Viewer)

Blue Lightning

Portal Member
October 8, 2011
49
52
Home Country
Antarctica Antarctica
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?
 

Blue Lightning

Portal Member
October 8, 2011
49
52
Home Country
Antarctica Antarctica
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:

Users who are viewing this thread

Top Bottom