From ffa88286e443a9b89c3f420dd43f87d81fbc118a Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 30 Oct 2025 17:28:14 +0100 Subject: [PATCH] [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 --- src/httpd_dacp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index 344474e8..3230c718 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -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 {