home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Use data-provided value for #TV.Guide.thumb texture?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Blue Lightning" data-source="post: 1195323" data-attributes="member: 115994"><p><strong>Summary:</strong></p><p>Have #TV.Guide.thumb use a provided program-specific image if available</p><p></p><p><strong>Area:</strong></p><p>TV Guide / xmlTV</p><p></p><p><strong>Description:</strong></p><p><strong></strong></p><p>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</p><p>(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)</p><p></p><p>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</p><p>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). </p><p></p><p>Two important changes that may be needed with GUITextureManager.cs </p><p>- It only accepts "http:" prefix as a valid web address (line 161). It should be updated to accept "https:" too.</p><p>- 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.</p><p></p><p></p><p>Here are two examples of how it could look (with images in an edited skin file and data) in DefaultWideHD's TV Guide: </p><p></p><p><img src="https://i.imgur.com/hgHrOPU.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p></blockquote><p></p>
[QUOTE="Blue Lightning, post: 1195323, member: 115994"] [B]Summary:[/B] Have #TV.Guide.thumb use a provided program-specific image if available [B]Area:[/B] TV Guide / xmlTV [B]Description: [/B] 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: [IMG]https://i.imgur.com/hgHrOPU.png[/IMG] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Use data-provided value for #TV.Guide.thumb texture?
Contact us
RSS
Top
Bottom