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)