diff --git a/src/db/update/Archive.cxx b/src/db/update/Archive.cxx index df7bb2c1c..042d203ac 100644 --- a/src/db/update/Archive.cxx +++ b/src/db/update/Archive.cxx @@ -95,6 +95,13 @@ UpdateWalk::UpdateArchiveTree(ArchiveFile &archive, Directory &directory, FormatDefault(update_domain, "added %s/%s", directory.GetPath(), name); } + } else { + if (!song->UpdateFileInArchive(archive)) { + FormatDebug(update_domain, + "deleting unrecognized file %s/%s", + directory.GetPath(), name); + editor.LockDeleteSong(directory, song); + } } } }