[Pending] - Allow web image caching between sessions, plus general web image improvements [MP Client]

Discussion in 'Submit: code patches (MediaPortal/TV-Server/etc.)' started by Blue Lightning, July 30, 2017.

  1. Blue Lightning

    Blue Lightning Portal Member

    Joined:
    October 8, 2011
    Messages:
    49
    Likes Received:
    26
    Ratings:
    +43 / 0
    Home Country:
    Australia Australia
    Show System Specs
    Patch for MP1 Client attached

    New feature:
    Skins can include cache="true" on texture elements eg <texture cache="yes">#TV.Example.Logo</texture> or <texture cache="yes">https://example.com/example.png</texture>
    This will make the image save in a /Webcache folder and persist between Mediaportal sessions.
    Images are deleted when they haven't been used for 72 hours. This means you can have the same image persist for weeks without internet if you're constantly using it (no need to web request it), but when you're not using it it'll be deleted.
    The 72 hours should be attached to a GUI setting in future.



    Any texture elements without cache="yes" will continue to use the current session-based saving. Therefore this change is backwards compatible with all skins.

    Fixes to existing feature:
    Web downloaded images now accept HTTPS. Was previously just HTTP.
    Web images are temporarily saved by their URL instead of a number. This may improve performance as MP only needs to look at 1 file instead of looping over every existing file.
    PNG images are now saved and processed as .png. This may improve performance as they were previously being treated as gif and using frame-finding code.



    (my previous threads can be closed as outdated)
     

    Attached Files:

    • Like Like x 5
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Blue Lightning

    Blue Lightning Portal Member

    Joined:
    October 8, 2011
    Messages:
    49
    Likes Received:
    26
    Ratings:
    +43 / 0
    Home Country:
    Australia Australia
    Show System Specs
    @Developers Is it too late to try this in 1.18's prerelease? If it is could it please be tried in 1.19's prerelease?
     
  4. Blue Lightning

    Blue Lightning Portal Member

    Joined:
    October 8, 2011
    Messages:
    49
    Likes Received:
    26
    Ratings:
    +43 / 0
    Home Country:
    Australia Australia
    Show System Specs
    @Developers Would it be possible to try this in 1.19's prerelease?
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!