From 32f6d349046cf345d041ec7af9fd32e5b965202a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Feb 2016 15:03:58 +0100 Subject: [PATCH] db/update/Archive: rescan tags on existing songs in archive This is the final piece for full ID3/APE support in archives. --- src/db/update/Archive.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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); + } } } }