mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[dacp] Change update id's more often
Sometimes the artwork changes, but the album does not (especially likely if we are in a row of "Unknown album"-tracks)
This commit is contained in:
parent
63ab446bd5
commit
68022d5c10
@ -174,7 +174,13 @@ dacp_nowplaying(struct evbuffer *evbuf, struct player_status *status, struct db_
|
||||
*/
|
||||
if (queue_item->data_kind == DATA_KIND_HTTP || queue_item->data_kind == DATA_KIND_PIPE)
|
||||
{
|
||||
id = djb_hash(queue_item->album, strlen(queue_item->album));
|
||||
// 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));
|
||||
else
|
||||
id = djb_hash(queue_item->title, strlen(queue_item->title));
|
||||
|
||||
songalbumid = (int64_t)id;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user