- October 8, 2011
- 49
- 52
- Home Country
- Antarctica
Here's a patch to allow skins to display images from the internet without re-downloading that same image each time MP is started. The image is only redownloaded if it has been deleted (which happens automatically if the image has not been used by any skin for 72 hours). The feature is completely optional and skins don't need to use it, as the existing temporary method (clearing the cached file on MP close) is still default.
Patch for MediaPortal guilib: http://pastebin.com/u1GBVUuf
Documentation: Skins can include attribute 'save' on the texture element eg <texture save="yes">#TV.Example.Logo</texture> or <texture save="yes">https://example.com/example.png</texture> to force the downloaded file to be saved locally. Files unused for 3 days are deleted. Excluding the 'save' parameter uses the temporary save method that is in the release version of MediaPortal.
Bug fixes: (this fixes two existing bugs in MP's guilib)
png images were being saved as gif. now they're saved as png, skipping gif frame-finding code (possibly improving performance)
only http images could be downloaded before, now https can too.
Patch for MediaPortal guilib: http://pastebin.com/u1GBVUuf
Documentation: Skins can include attribute 'save' on the texture element eg <texture save="yes">#TV.Example.Logo</texture> or <texture save="yes">https://example.com/example.png</texture> to force the downloaded file to be saved locally. Files unused for 3 days are deleted. Excluding the 'save' parameter uses the temporary save method that is in the release version of MediaPortal.
Bug fixes: (this fixes two existing bugs in MP's guilib)
png images were being saved as gif. now they're saved as png, skipping gif frame-finding code (possibly improving performance)
only http images could be downloaded before, now https can too.