mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-06 20:33:10 -05:00
[dacp] Fix artwork for radio statios sometimes not updating
When "Ignore artwork provided by radio stations" is enabled, only the queue_item->title would be used to create the bogus track id for Remote. However, that is the name of the radio stations, so doesn't change. This fixes the issue by including queue_item->album (which is actually the track title when it's a radio station). Fixes #1938
This commit is contained in:
@@ -169,11 +169,11 @@ dacp_nowplaying(struct evbuffer *evbuf, struct player_status *status, struct db_
|
||||
// Could also use queue_item->queue_version, but it changes a bit too much
|
||||
// leading to Remote reloading too much
|
||||
if (queue_item->artwork_url)
|
||||
id = djb_hash(queue_item->artwork_url, strlen(queue_item->artwork_url));
|
||||
songalbumid = two_str_hash(queue_item->album, queue_item->artwork_url);
|
||||
else
|
||||
id = djb_hash(queue_item->title, strlen(queue_item->title));
|
||||
songalbumid = two_str_hash(queue_item->album, queue_item->title);
|
||||
|
||||
songalbumid = (int64_t)id;
|
||||
id = (uint32_t)songalbumid;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user