-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate cached cover art (same cover art downloaded for each track in album) #551
Comments
On LMS side:
|
I think that's pretty much the same as Navidrome's implementation. I think the "issue" is that there's no good way to de-duplicate embedded images. Binary comparison is too slow and error-prone. Navidrome has a server-side setting to prefer external art even for track cover images when the files do have embedded art (to avoid this duplication scenario). LMS could consider adding that as well. I could also consider adding such a setting to Supersonic, but it would be more efficient to solve server-side. Because otherwise Supersonic would have to first make an HTTP request to get a track's parent album, and then a second HTTP request to fetch the album cover art. @FibreTTP what do you think? |
Yes it could work, but maybe one day, we will extend OS with more info for each track/album like multi cover support (front, back) and some people already request for covers per disc etc. |
Maybe it makes sense to add an |
Looking at the OpenSubsonic docs, Could a music server compute a hash for each image it processes (at scan-time), and use this hash as the A client would then only request an image if it cannot find this hash in its database. |
Why not! This would add some extra logic on server side (need to keep a list of tracks/files for each "hash", in case some files/tracks are removed or whatever). Ideally, the id would be something opaque and the hash itself would be kept internal to the server. |
I did some tests on my library. The images embedded in the tracks average 130 KiB each. |
While checking that the cover art filename sanitation implemented in #533 was working, I noticed that I had 54 images of the same Skyrim Original Game Soundtrack cover art in my Supersonic cache folder:
This occurs when opening the Play Queue in Supersonic. Scrolling through the queue downloads each track's front cover:
The problem is, I don't know where to place the blame for this.
Ultimately, each file is only ~20 KiB, so not a huge deal. But I do believe this behaviour is not ideal, and can be solved with hashing on the client or server side.
Pinging @epoupon for discussion (I don't know if this happens on other music servers).
The text was updated successfully, but these errors were encountered: