🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
feat: transcoding info in responses, to enable Jamstash to play transcoded FLAC. hardcoded for now
Deluan6dfe56c1c4c4
diff --git a/server/subsonic/helpers.go b/server/subsonic/helpers.goindex fdf87c13e..fed54bfc8 100644--- a/server/subsonic/helpers.go+++ b/server/subsonic/helpers.go@@ -2,6 +2,7 @@ package subsonicimport ("fmt"+ "mime""net/http""strconv""strings"@@ -200,6 +201,9 @@ func ToChild(entry engine.Entry) responses.Child {child.Type = entry.Typechild.UserRating = entry.UserRatingchild.SongCount = entry.SongCount+ // TODO Must be dynamic, based on player/transcoding config+ child.TranscodedSuffix = "mp3"+ child.TranscodedContentType = mime.TypeByExtension(".mp3")return child}