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

Blue Lightning

Portal Member
October 8, 2011
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 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
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 (Users: 0, Guests: 1)

OP Similar threads Forum Replies Date
toricred Using TMM, How to Stop Importer From Going to The Movie Database for Data General 1
D EPG No Data General Support 2
D [solved] EPG Data off by -20 hours? General 10
W Setup data connection - mySQL connection failed Installation, configuration support 1
emphatic How to get the right data for War Of The Worlds? My TVSeries 1
T Freeview EPG-Anyone know what channel sends the guide data? Electronic Program Guide 10
F No data in "File Details" Moving Pictures 2
G Newb trying MP2, trouble with guide data General 5
J EPG data recheck? Feature Requests 0
B [solved] Where is the satellite data now? General 10
T No data available using xmltv and mc2xml xmlTV 2
M Importing movie data General 38
T Media Portal 2 EPG data missing General 16
P Multiple clients - share resume/watched data General 1
azzuro [WiP] Providing most of 3rd part tools as nuget MediaPortal 1 13
ajs [fixed] 5022: Improving the MPE Installer, providing nicer GUI :) MediaPortal 1 42
ajs [fixed] 5015: Improving the MP1 installer, providing nicer GUI :) MediaPortal 1 138
P No TV provider available (yet)? General 1
morpheus_xx Interest in a DVBLink / TV Mosaic SlimTV provider? MediaPortal 2 18
D "attempt to index local `zf' (a nil value)" General Support 0
G 1.23.0 Wrong return value for refresh rate / DRR Bugreports 4
D 'IPTV' is not a valid value for LineupTypes Electronic Program Guide 1
A "IRQL unexpected value" error General 4
Top Bottom