Also unexport streamTrack(), since it's only used in ctrlsubsonic

This commit is contained in:
Serge Tkatchouk
2020-03-12 13:27:52 +00:00
committed by sentriz
parent db7c965a65
commit 3230c8b2cb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ var (
bufLen = 4096 bufLen = 4096
) )
func StreamTrack(w http.ResponseWriter, r *http.Request, trackPath string, client string, clBitrate int, cachePath string) { func streamTrack(w http.ResponseWriter, r *http.Request, trackPath string, client string, clBitrate int, cachePath string) {
// Guess required format based on client: // Guess required format based on client:
profileName := detectFormat(client) profileName := detectFormat(client)
profile := encProfiles[profileName] profile := encProfiles[profileName]
+1 -1
View File
@@ -73,7 +73,7 @@ func (c *Controller) ServeStream(w http.ResponseWriter, r *http.Request) *spec.R
track.Album.RightPath, track.Album.RightPath,
track.Filename, track.Filename,
) )
StreamTrack(w, r, absPath, client, bitrate, c.CachePath) streamTrack(w, r, absPath, client, bitrate, c.CachePath)
// //
// after we've served the file, mark the album as played // after we've served the file, mark the album as played