Add renaming slave folders to the master's spelling
The "N folders are named differently" warning now offers to rename the slave folders to match the master, marked as the recommended first step after a scan (also linked from the dashboard card). - A preview lists each rename with the differing characters highlighted; renames are selectable, and conflicts (the slave already has a folder with the master's name, symlinks, the quarantine) are skipped with a reason. - Only renames the server computes itself are applied; a request can only narrow them down, never name arbitrary paths. Only slave folders are renamed. - Case-only renames go through a temporary name so they also work on case-insensitive filesystems; a rename interrupted by a crash is completed on startup (the folder is never removed). - Renaming everything repeats until folders revealed inside renamed ones (an album under a renamed artist) are fixed too, then rescans. - Each rename is an operation in History that can be undone (which also rescans). Dry run records renames as planned. Also fixes the Review list not refreshing after a job that started and finished between two status polls, and logs the new path of operations. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
176a527ec7
commit
42161e4287
14 files changed
+684
-21
No files matched your search
@@ -100,8 +100,8 @@ func renamedWarning(pairs [][2]string) *store.Warning {
|
||||
if len(pairs) == 0 {
|
||||
return nil
|
||||
}
|
||||
w := &store.Warning{Total: len(pairs),
|
||||
Detail: "Songs inside these folders can only match by path once the names agree. Rename one side so they match."}
|
||||
w := &store.Warning{Code: store.WarnRenamedFolders, Total: len(pairs),
|
||||
Detail: "Songs inside these folders can only match by path once the names agree. Renaming the slave folders to the master's spelling is the recommended first step after a scan."}
|
||||
if len(pairs) == 1 {
|
||||
w.Title = "1 folder is named differently in the two libraries"
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user