Watcharr icon indicating copy to clipboard operation
Watcharr copied to clipboard

Bug: Do not add the cover if there was an error in the first import.

Open simonbcn opened this issue 1 year ago • 5 comments

Fedora Linux 40
Watcharr 1.41.0 on Docker

I added a movie at a time when my internet connection was failing. It added correctly but without a cover. When the connection was restored, Watcharr still did not add the cover. I deleted the movie and tried adding it again, but it still doesn't add the cover. Attached is a screen recording:

https://github.com/user-attachments/assets/141e41b4-9066-4bf9-9b8e-159ab42f1cdd

simonbcn avatar Aug 16 '24 08:08 simonbcn

Hi @simonbcn, sorry to hear about your troubles.

This makes me think that Watcharr may have created the image file in your data folder, but wasn't able to complete it, which left you with a corrupted image that wont be replaced.

Do you have any experience with your browsers dev tools? We can try to locate the image to try removing, maybe we can fix this for you now before we can get a fix out:

  1. Right click the movie in your browser
  2. Click Inspect
  3. In the new popup thing, you should be in the Inspector tab. Look for the img tag (should be one above the highlighted tag): image
  4. The bit I have highlighted (in the screenshot) will be the file name we can look for in your containers data folder, if it is there, try deleting it (should be under data/img).
  5. (may need to restart watcharr server) now just click back into the movie on watcharr and it should re-download the image.

IRHM avatar Aug 16 '24 14:08 IRHM

It doesn't work. I deleted the image, deleted the movie, restarted the server, re-added the movie but it still fails. These screenshots are after completing this process: Captura de pantalla 2024-08-17 a las 9 09 55

Captura de pantalla 2024-08-17 a las 9 10 34

simonbcn avatar Aug 17 '24 07:08 simonbcn

@simonbcn oh i see, you said you deleted the image, was the file on your system? Did it not reappear afterwards?

IRHM avatar Aug 17 '24 12:08 IRHM

I was just able to try this myself, I can remove that image file from my data/img folder then after restarting the server and clicking back into the movie, it re-downloads the file.

Very weird it doesn't do the same for you.

After you complete that process:

  1. Does the image file reappear in your data/img folder?
  2. Can you view the image file outside of watcharr (by opening the jpg directly, if possible)?
  3. Are any errors logged?

IRHM avatar Aug 17 '24 16:08 IRHM

It worked now. It redownloaded the cover.

simonbcn avatar Aug 18 '24 06:08 simonbcn

Slightly improved the poster downloading in #658, but I don't believe that fully resolves this issue because of request caching on the server.

Going to close this in favour of #62, which I think should help resolve any outstanding issues with this by allowing manual refresh of content.

Thanks again for reporting this!

IRHM avatar Oct 13 '24 11:10 IRHM