fix: smart query suffix — skip 'audio' for remixes/edits

Remixes already have '(Remix)' etc. in title so no suffix needed.
Normal tracks get 'audio' to filter piano covers and tutorials.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-04-28 19:20:35 +02:00
1 parent 06c38cd427
commit dcdae19cec
1 file changed
+2 -1
+2 -1
View File
@@ -179,7 +179,8 @@ async function downloadTrack({ jobId, artist, albumArtist, title, album, year, t
} }
const outputTemplate = path.join(dir, `${trackPrefix}${safeTitle}.%(ext)s`); const outputTemplate = path.join(dir, `${trackPrefix}${safeTitle}.%(ext)s`);
const query = `${mainArtist} - ${title} audio`; const isRemix = /\b(remix|edit|flip|vip|bootleg|mix|rework|cover)\b/i.test(title);
const query = isRemix ? `${mainArtist} - ${title}` : `${mainArtist} - ${title} audio`;
// Step 1: yt-dlp — audio only, no thumbnail (we embed iTunes artwork ourselves) // Step 1: yt-dlp — audio only, no thumbnail (we embed iTunes artwork ourselves)
const baseArgs = [ const baseArgs = [