[API Request] getCoverArt parameter to return embedded art first #42
Closed
acroyear
started this conversation in
API requests
Replies: 1 comment 4 replies
-
I think this is unnecessary and it's an implementation detail for the server. Not all servers support embedded art. Of the ones that do, some (eg Navidrome) let the cover art priority be configured as a server setting. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Type of change
API Clarification
Proposal description
In some cases (e.g., Greatest Hits compilations), some of my mp3 files have embedded the single's cover art rather than the 'greatest hits' album. If these songs are all grouped together in the same musicDirectory on the file system, they all get the same cover art. I would like to be able to ask the server to return the embedded coverArt from the song rather than the folder's assigned thumbnail.
Backward compatibility impact
only an additive feature.
Backward compatibility
API details
/rest/getCoverArt?size=<size>&id=<id>&preferEmbedded=<true|false>
Security impacts
Can't be sure if there's not some XSS corrupting info in the image, of course, but that's true even for what the java code is extracting.
Potential issues
If the data is cached with the rest of the thumbnails, it can greatly increase the size of the thumbnail folder on the server. Maybe enabling the feature could be a configuration option.
Alternative solutions
Alternate solution is for the server itself to have configurations to decide if a song's thumbnail should return the folder or the song's individual rather than an API call. Not possible with subsonic or its derivatives currently, of course. But the API version could give the individual user the to (for clients supporting it) the ability to switch between them.
Beta Was this translation helpful? Give feedback.
All reactions