[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:
ejurgensen
2025-10-30 17:28:14 +01:00
parent 49171dac1a
commit ffa88286e4

View File

@@ -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
{