fix: remove all query suffix — rely on duration filter only

Adding 'audio' shifts results for lesser-known artists (Kanro, etc.).
Plain 'Artist - Title' matches what users find manually on YouTube.
Duration filter is the reliable quality check against wrong songs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-04-28 19:56:05 +02:00
1 parent dcdae19cec
commit caa4cc1ef3
1 file changed
+1 -2
+1 -2
View File
@@ -179,8 +179,7 @@ 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 isRemix = /\b(remix|edit|flip|vip|bootleg|mix|rework|cover)\b/i.test(title); const query = `${mainArtist} - ${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 = [