wait to set next track until near end of current. (still needs more testing/review)

This commit is contained in:
Drew Weymouth
2025-07-19 09:33:15 -07:00
parent bcc0007042
commit dfa493501d
2 changed files with 58 additions and 57 deletions
+7 -1
View File
@@ -559,7 +559,13 @@ func (d *DLNAPlayer) handleRequest(w http.ResponseWriter, r *http.Request) {
return
}
// Create a new request to the target server
// if the url is a filepath for a local cached file, serve it
if info, err := os.Stat(url); err == nil && info.Size() > 0 {
http.ServeFile(w, r, url)
return
}
// Otherwise, proxy request to the music server
proxyReq, err := http.NewRequest(r.Method, url, r.Body)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)