From 53971be2aae535ccf31b54787f2ee3c4c8ed3a83 Mon Sep 17 00:00:00 2001 From: Serge Tkatchouk Date: Thu, 13 Feb 2020 23:07:40 +0800 Subject: [PATCH] Extract client app name (needed for per-client quirks) --- server/ctrlsubsonic/handlers_raw.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/ctrlsubsonic/handlers_raw.go b/server/ctrlsubsonic/handlers_raw.go index 3698a0e..e0b25fd 100644 --- a/server/ctrlsubsonic/handlers_raw.go +++ b/server/ctrlsubsonic/handlers_raw.go @@ -60,6 +60,9 @@ func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.R if gorm.IsRecordNotFoundError(err) { return spec.NewError(70, "media with id `%d` was not found", id) } + + client := params.GetOr("c", "generic") + absPath := path.Join( c.MusicPath, track.Album.LeftPath,