From 80c711ac9d9c81ee307f9785b7511ac412befe24 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Mon, 19 Oct 2026 23:31:11 -0400 Subject: [PATCH] fix: a wrong-slot removal reads without a counted noun (M498) Co-Authored-By: Claude Opus 5.5 --- web/src/routes/collection/duplicates/+page.svelte | 5 ++--- web/src/routes/collection/duplicates/duplicates.test.ts | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/routes/collection/duplicates/+page.svelte b/web/src/routes/collection/duplicates/+page.svelte index c1e054bd..6d569e16 100644 --- a/web/src/routes/collection/duplicates/+page.svelte +++ b/web/src/routes/collection/duplicates/+page.svelte @@ -250,9 +250,8 @@

{:else if item.action === 'duplicate_wrong_file'}

- {item.details.artist}: the recording of {item.details.kept_title} also filled the - {plural(removed.length, 'slot', 'slots')} of {removed.map((r) => r.title).join(', ')}. - Removed; the album will be fetched again. + {item.details.artist}: the recording of {item.details.kept_title} was also filed as + {removed.map((r) => r.title).join(', ')}. Removed from there; the album will be fetched again.

{:else}

diff --git a/web/src/routes/collection/duplicates/duplicates.test.ts b/web/src/routes/collection/duplicates/duplicates.test.ts index 4de1dead..60ccfcc9 100644 --- a/web/src/routes/collection/duplicates/duplicates.test.ts +++ b/web/src/routes/collection/duplicates/duplicates.test.ts @@ -378,7 +378,7 @@ describe('admin duplicates', () => { const items = screen.getAllByTestId('resolved-item').map(text); expect(items[0]).toContain('Moe Shop: Lovesick and Lovesick (Instrumental) are different versions, not duplicates. Both kept.'); expect(items[1]).toContain( - 'Savant: the recording of Void also filled the slot of Reach. Removed; the album will be fetched again.' + 'Savant: the recording of Void was also filed as Reach. Removed from there; the album will be fetched again.' ); expect(items[1]).toContain('/data/Music/Savant/Void/17 - Reach.m4a'); });