- October 8, 2011
- 49
- 52
- Home Country
- Antarctica
Summary:
Have #TV.Guide.thumb use a provided program-specific image if available
Area:
TV Guide / xmlTV
Description:
Currently #TV.Guide.thumb defaults to "defaultVideoBig.png". Then if that program's channel has an image it'll use that image (mpdirectory/thumbs/tv/logos/CHANNEL.png). It would be nice if this value could also check the TV Guide data, and if an "<icon>" is provided with a "src" attribute, set that URL (or local/network path) as the image. So priority order would be: (highest to lowest) Data-provided image URL/path for this specific airing, channel image for the channel the airing is on, defaultVideoBig.png
(I'm unsure if MediaPortal's built-in thumbnailer from the video file also hooks into #TV.Guide.thumb but in my opinion the priority order there would be: Data-provided image URL, MP generated thumb from video file, channel image, defaultVideoBig.png)
As far as I can tell most of this would already work, but that particular xmltv data isn't stored in the database, and isn't assigned as the #TV.Guide.thumb
Substituting that value with another such as #TV.Guide.classification (where <rating> has a value with the URL) in the guide data correctly shows the image (if you replace #TV.Guide.thumb in the TV guide skin file).
Two important changes that may be needed with GUITextureManager.cs
- It only accepts "http:" prefix as a valid web address (line 161). It should be updated to accept "https:" too.
- When a URL is used as a <texture> value it downloads the image and temporarily places it in "C:\ProgramData\Team MediaPortal\MediaPortal\thumbs" with a filename like "MPTemp0.jpg". The file is deleted when MediaPortal closes. For these URLs (TV program images) it may reduce remote site load to cache them in "thumbs\tv\Shows", either by time (1 week?) or a size limit.
Here are two examples of how it could look (with images in an edited skin file and data) in DefaultWideHD's TV Guide:
Have #TV.Guide.thumb use a provided program-specific image if available
Area:
TV Guide / xmlTV
Description:
Currently #TV.Guide.thumb defaults to "defaultVideoBig.png". Then if that program's channel has an image it'll use that image (mpdirectory/thumbs/tv/logos/CHANNEL.png). It would be nice if this value could also check the TV Guide data, and if an "<icon>" is provided with a "src" attribute, set that URL (or local/network path) as the image. So priority order would be: (highest to lowest) Data-provided image URL/path for this specific airing, channel image for the channel the airing is on, defaultVideoBig.png
(I'm unsure if MediaPortal's built-in thumbnailer from the video file also hooks into #TV.Guide.thumb but in my opinion the priority order there would be: Data-provided image URL, MP generated thumb from video file, channel image, defaultVideoBig.png)
As far as I can tell most of this would already work, but that particular xmltv data isn't stored in the database, and isn't assigned as the #TV.Guide.thumb
Substituting that value with another such as #TV.Guide.classification (where <rating> has a value with the URL) in the guide data correctly shows the image (if you replace #TV.Guide.thumb in the TV guide skin file).
Two important changes that may be needed with GUITextureManager.cs
- It only accepts "http:" prefix as a valid web address (line 161). It should be updated to accept "https:" too.
- When a URL is used as a <texture> value it downloads the image and temporarily places it in "C:\ProgramData\Team MediaPortal\MediaPortal\thumbs" with a filename like "MPTemp0.jpg". The file is deleted when MediaPortal closes. For these URLs (TV program images) it may reduce remote site load to cache them in "thumbs\tv\Shows", either by time (1 week?) or a size limit.
Here are two examples of how it could look (with images in an edited skin file and data) in DefaultWideHD's TV Guide: