db/update/Archive: rescan tags on existing songs in archive

This is the final piece for full ID3/APE support in archives.
This commit is contained in:
Max Kellermann 2016-02-26 15:03:58 +01:00
parent d3ae05506d
commit 32f6d34904

View File

@ -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);
}
}
}
}