From 969700674c305839fae465e8e0c5db7e32cf1ab6 Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Sun, 28 Jun 2026 15:16:13 -0700 Subject: [PATCH] import singles: default the Identify search to "artist - title" (dash) Discord (Shdjfgatdif): the import-singles Identify search prefilled "artist title" (space), so "Sub Focus Last Jungle" returned junk while "Sub Focus - Last Jungle" found the track. The placeholder already hints "Search artist - title..."; the prefill just did not match it. Join with " - " instead of " ". filter(Boolean) keeps a lone title (no artist) dash-free. --- webui/src/routes/import/-ui/singles-import-tab.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webui/src/routes/import/-ui/singles-import-tab.tsx b/webui/src/routes/import/-ui/singles-import-tab.tsx index 7aac6728..d2c6b74c 100644 --- a/webui/src/routes/import/-ui/singles-import-tab.tsx +++ b/webui/src/routes/import/-ui/singles-import-tab.tsx @@ -50,7 +50,10 @@ export function SinglesImportTab() { setOpenSingleSearch(fileKey); const defaultQuery = - [file?.artist, file?.title].filter(Boolean).join(' ') || + // "artist - title" (the placeholder hints this, and source search needs the + // dash to disambiguate — "Sub Focus Last Jungle" finds junk, "Sub Focus - Last + // Jungle" finds the track). filter(Boolean) keeps a lone title dash-free. + [file?.artist, file?.title].filter(Boolean).join(' - ') || (file?.filename || '').replace(/\.[^.]+$/, ''); ensureSingleSearch(fileKey, defaultQuery); if (defaultQuery && !singleSearches[fileKey]?.results.length) {