From efa3ffa8d815573303aee98201867b2c23ed6dba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 14 Oct 2021 11:46:59 +0200 Subject: [PATCH] Revert "db/update/playlist: remove non-existent targets while scanning" This reverts commit 9200fa6d06311e4128e62f21b2dc3315df4d356e. It was wrong because it works only if the target song has already been scanned. --- src/db/update/Playlist.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/db/update/Playlist.cxx b/src/db/update/Playlist.cxx index d6d08afe3..15573675d 100644 --- a/src/db/update/Playlist.cxx +++ b/src/db/update/Playlist.cxx @@ -61,11 +61,6 @@ UpdateWalk::UpdatePlaylistFile(Directory &directory, { const ScopeDatabaseLock protect; - - if (!is_absolute && - !directory.TargetExists(db_song->target)) - continue; - directory.AddSong(std::move(db_song)); } }