node-sonos icon indicating copy to clipboard operation
node-sonos copied to clipboard

Fix albumarturl errors

Open kcghost opened this issue 3 years ago • 0 comments

Fixes #516. That is, unless there is another albumArtURI parsing error root cause besides the one I found. I had a DLNA played track on my network that caused this error in a very reproducible manner.

The first change handles the error itself, the other is a change to swallow an error in CurrentTrack if a different parsing error occurs (make it do its best rather than fail out). I imagine whether you wish to accept the second depends largely on your philosophy. I just know that the way sonos-web uses this project, all of sonos-web becomes unusable if this error occurs on any sonos host. I would rather it fail to display the albumart than fail to do anything at all.

kcghost avatar Jan 20 '22 14:01 kcghost