Add setting to disable server transcoding

This commit is contained in:
Drew Weymouth
2023-10-30 17:32:27 -07:00
parent 9b0a017e8c
commit c9320b8021
6 changed files with 26 additions and 9 deletions
@@ -192,8 +192,12 @@ func (s *subsonicMediaProvider) GetSimilarTracks(artistID string, count int) ([]
return sharedutil.MapSlice(tr, toTrack), nil
}
func (s *subsonicMediaProvider) GetStreamURL(trackID string) (string, error) {
u, err := s.client.GetStreamURL(trackID, map[string]string{})
func (s *subsonicMediaProvider) GetStreamURL(trackID string, forceRaw bool) (string, error) {
m := make(map[string]string)
if forceRaw {
m["format"] = "raw"
}
u, err := s.client.GetStreamURL(trackID, m)
if err != nil {
return "", err
}