jishi / node-sonos-http-api

An HTTP API bridge for Sonos easing automation. Hostable on any node.js capable device, like a raspberry pi or similar.
http://jishi.github.io/node-sonos-http-api/
MIT License
1.83k stars 462 forks source link

Add support for caching the album art #459

Open lfuelling opened 7 years ago

lfuelling commented 7 years ago

Hi,

I searched for a similar issue but found none. Sorry if there is.

I built a webinterface for controlling my Sonos. The problem is that while debugging I had a lot of refreshing (~100ms between requests) and this seems to have killed the /getaa link where you get album art from.

It would be super awesome to have the cover art cached in this API because it's way more performant when it comes to handling a lot of traffic.

Regards

Lukas

jishi commented 7 years ago

For some music services I already look up the direct URL to the service CDN, but it could of course cache all the getaa urls for snappier responses. I already do that in the sonos-web-controller. That was mostly for latency reasons. Also, the official controller does lazy loading of the images to avoid excessive traffic to the players.