From 0fa099b44be660d98d903502d04deb9cd8f74a17 Mon Sep 17 00:00:00 2001 From: sentriz Date: Tue, 31 Oct 2023 20:23:53 +0000 Subject: [PATCH] don't left join to find similar artists --- server/ctrlsubsonic/handlers_by_tags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/ctrlsubsonic/handlers_by_tags.go b/server/ctrlsubsonic/handlers_by_tags.go index bf5ab1f..919c4ef 100644 --- a/server/ctrlsubsonic/handlers_by_tags.go +++ b/server/ctrlsubsonic/handlers_by_tags.go @@ -354,8 +354,8 @@ func (c *Controller) ServeGetArtistInfoTwo(r *http.Request) *spec.Response { err = c.dbc. Select("artists.*, count(albums.id) album_count"). Where("name=?", similarName). - Joins("LEFT JOIN album_artists ON album_artists.artist_id=artists.id"). - Joins("LEFT JOIN albums ON albums.id=album_artists.album_id"). + Joins("JOIN album_artists ON album_artists.artist_id=artists.id"). + Joins("JOIN albums ON albums.id=album_artists.album_id"). Group("artists.id"). Preload("Info"). Find(&artist).