Jorixon / JASM

Just Another Skin Manager
GNU General Public License v3.0
61 stars 7 forks source link

Cache Preview image? #165

Open RaSan147 opened 3 months ago

RaSan147 commented 3 months ago

Describe the bug When i paste the link, most of the time it gets the preview image from site (not always), also when I reopen the app, the preview image is gone (most of the time). Can you please cache received images and retry getting the preview image (if failed to fetch) Also a recommendation on adding "Paste image" so that if it fails we can simply RClick the image, copy and paste it there.

To Reproduce Steps to reproduce the behavior:

  1. Add a mod
  2. Add the mod link
  3. wait for the image to load
  4. save mod
  5. close and reopen mod
  6. see the preview image go "✌️" -> " "

Expected behavior Keep the image in the cache (and remove it if the mod is deleted)

Screenshots this one is cached image this one is gone image

Desktop (please complete the following information):

Which version of Windows operating system am I running?

Additional context log.txt

Jorixon commented 3 months ago

Interesting, I've never experienced this issue myself

I'll see if I can find a fix for this. Thanks for notifying me!

RaSan147 commented 3 months ago

When checking for updates (as you do every 30 min) do check for the image (if link available and custom image not set)

Often i need to wait like 30-60 sec to load the image on add page...