From 461a1d55bfe35a30ce1bdad96939711dc6a7d7cc Mon Sep 17 00:00:00 2001 From: chme Date: Sat, 8 Sep 2018 09:14:24 +0200 Subject: [PATCH] [player] Only add persistent items to history The current logic in httpd_dacp.c cannot handle non persistent items correctly. The items are always shown with the dummy_mfi with "unkown artist" etc. --- src/player.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/player.c b/src/player.c index 10dfd3d6..1fb0f017 100644 --- a/src/player.c +++ b/src/player.c @@ -818,10 +818,9 @@ source_check(void) #ifdef LASTFM worker_execute(scrobble_cb, &id, sizeof(int), 8); #endif + history_add(cur_playing->id, cur_playing->item_id); } - history_add(cur_playing->id, cur_playing->item_id); - if (consume) db_queue_delete_byitemid(cur_playing->item_id);