janbar / noson-app

The essential to control music from your SONOS devices on Linux platforms
GNU General Public License v3.0
344 stars 28 forks source link

Configuring where album art is retrieved and icon for airsonic service #126

Open hasnul opened 4 years ago

hasnul commented 4 years ago

Hi. I'm running Noson on Ubuntu 18.04 and getting media from an airsonic service on the local network.

I noticed that the Airsonic service item in Noson does not have an icon or image; it's blank -- is there a config for this?

When I browse the library on Noson, I can see that it has retrieved the album art from the airsonic media directories. When I go into an album all the tracks have the same art as the album art shown in the parent "container" i.e. under Browse Library -- the art is obtained from the airsonic server.( I tested this by turning Whitney into Hendrix on the server.) So far the behaviour is entirely consistent IMO.

Now when I play the track, I was a little bit surprised that the album art is now different. I was expecting the same image to show. In some cases, no image shows when playing the track. Is there an option/config to "fix" this so that the behavior is consistent throughout the app? It's obvious that the app knows how to correctly retrieve art from the airsonic server but behaves differently when the track is played.

janbar commented 4 years ago

Hi, I haven't the service "airsonic" available with my Sonos system. So I can't test it. What else, when you browse a service content the arts are retrieved from the url given by the service response. But when you play a track the art is provided by the Sonos device itself. It is probably the cause of your issue. If noson can't retrieve an art, it will try to get from Deezer using the Album title and the Artist name.

hasnul commented 4 years ago

Ok. I had suspicions that this might be what's going on. Looking at the debug output, the app is fairly complicated so I'm not even going to attempt to hack it. (Well, maybe I will -- just as a hobby -- but it's going to be ugly)

For reference, the airsonic server is linked to a pair of sonos speakers. I'm using this branch pulled from airsonic master: https://github.com/airsonic/airsonic/pull/1356.

I also have a windows pc running the latest sonos controller which depicts the album art of the playing track correctly as served from the media server. So for example, when I play the track on Noson on my main (Ubuntu) the album art is not right, but the sonos controller on windows shows the right cover art of the playing track, which is the same art on the server. This is just for note, as you have explained, Noson's fallback is to search Deezer in the former case.