- October 8, 2011
- 49
- 52
- Home Country
- Antarctica
- Thread starter
- #11
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?
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?