From 3c005794f3bd2a710e6f77d35786fe06635fd748 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Thu, 5 Feb 2026 11:56:17 +0300 Subject: [PATCH] Exclude Various Artists from track lookup --- crates/scrobbler/src/repo/track.rs | 2 +- crates/webscrobbler/src/repo/track.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/scrobbler/src/repo/track.rs b/crates/scrobbler/src/repo/track.rs index 5ae8e0cb..fa4a5def 100644 --- a/crates/scrobbler/src/repo/track.rs +++ b/crates/scrobbler/src/repo/track.rs @@ -12,7 +12,7 @@ pub async fn get_track( r#" SELECT * FROM tracks WHERE LOWER(title) = LOWER($1) - AND (LOWER(artist) = LOWER($2) OR LOWER(album_artist) = LOWER($2)) + AND (LOWER(artist) = LOWER($2) OR LOWER(album_artist) = LOWER($2)) AND LOWER(album_artist) != 'various artists' "#, ) .bind(title) diff --git a/crates/webscrobbler/src/repo/track.rs b/crates/webscrobbler/src/repo/track.rs index 5ae8e0cb..fa4a5def 100644 --- a/crates/webscrobbler/src/repo/track.rs +++ b/crates/webscrobbler/src/repo/track.rs @@ -12,7 +12,7 @@ pub async fn get_track( r#" SELECT * FROM tracks WHERE LOWER(title) = LOWER($1) - AND (LOWER(artist) = LOWER($2) OR LOWER(album_artist) = LOWER($2)) + AND (LOWER(artist) = LOWER($2) OR LOWER(album_artist) = LOWER($2)) AND LOWER(album_artist) != 'various artists' "#, ) .bind(title) -- 2.51.2