soup-bowl / localib

Keeps your Discogs library offline and searchable.
https://localib.app
MIT License
0 stars 0 forks source link

Thumbnails don't appear when connection lost #3

Closed soup-bowl closed 2 months ago

soup-bowl commented 2 months ago

Tracking in branch indexing-images.

So far I seem to be hitting an issue thanks to CORS/CSP. No matter what I do, I cannot seem to 'access' the image in the browser due to the (lack of?) CORS policy.

From the looks of it, it's not something Discogs are going to fix: https://www.discogs.com/forum/thread/716765

I have also tried proxying their CDN to set my own CORS, but would just immediately hit a rate limiter and get blocked by Cloudflare.

So far, it seems like a no-go - only possible solution (so far) is to load the collection up before losing connection. If the app unloads, all the album & profile art will be lost.

soup-bowl commented 2 months ago

Working on a Microservice that will scrape their API. If successful, the current app can gradually incorporate the images into its own storage.