From f9b1a68532b556762eaeb9fb387753084aa2460f Mon Sep 17 00:00:00 2001 From: luke-1993 Date: Fri, 13 Oct 2023 10:52:46 +0100 Subject: [PATCH] must add http prefix --- server/subsonic/stream.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/subsonic/stream.go b/server/subsonic/stream.go index 6ac189863..95b9a59a3 100644 --- a/server/subsonic/stream.go +++ b/server/subsonic/stream.go @@ -180,9 +180,9 @@ func (api *Router) Delete(w http.ResponseWriter, r *http.Request) (*responses.Su } println(mf.Artist) println(mf.Title) - // todo make this configurable + // todo set this base from env variable //baseUrl := "http://127.0.0.1:8337" - baseUrl := "host.docker.internal:8337" + baseUrl := "http://host.docker.internal:8337" queryEndPoint := "/item/query/" queryStr := fmt.Sprintf("artist:%s/title:%s", mf.Artist, mf.Title) url := baseUrl + queryEndPoint + queryStr