Extract client app name (needed for per-client quirks)
This commit is contained in:
@@ -60,6 +60,9 @@ func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.R
|
|||||||
if gorm.IsRecordNotFoundError(err) {
|
if gorm.IsRecordNotFoundError(err) {
|
||||||
return spec.NewError(70, "media with id `%d` was not found", id)
|
return spec.NewError(70, "media with id `%d` was not found", id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
client := params.GetOr("c", "generic")
|
||||||
|
|
||||||
absPath := path.Join(
|
absPath := path.Join(
|
||||||
c.MusicPath,
|
c.MusicPath,
|
||||||
track.Album.LeftPath,
|
track.Album.LeftPath,
|
||||||
|
|||||||
Reference in New Issue
Block a user