Extract client app name (needed for per-client quirks)

This commit is contained in:
Serge Tkatchouk
2020-02-13 23:07:40 +08:00
committed by sentriz
parent 01b620cffb
commit e93d35445c

View File

@@ -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,