From 22edd2ea9cee2e9204c4655669cb5c1e42e128fe Mon Sep 17 00:00:00 2001 From: grey Date: Thu, 13 Oct 2022 17:58:09 +0200 Subject: [PATCH] added additional info --- webRoutes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webRoutes.go b/webRoutes.go index 9e0fe71..a788d27 100644 --- a/webRoutes.go +++ b/webRoutes.go @@ -329,7 +329,7 @@ func handleRemaining(w http.ResponseWriter, r *http.Request) { plyB.Done <- true } fmt.Println(position) - fmt.Fprintf(w, "{\"status\":\"ok\", \"SampleRate\":%d, \"Length\":%d, \"Position\":%d, \"Remaining\": %d, \"LengthSec\":\"%v\", \"PosSec\":\"%v\", \"RemaningSec\":\"%v\"}", n, length, position, remaining, length, position, remaining) + fmt.Fprintf(w, "{\"status\":\"ok\", \"id\":%d, \"SampleRate\":%d, \"Length\":%d, \"Position\":%d, \"Remaining\": %d, \"LengthSec\":\"%v\", \"PosSec\":\"%v\", \"RemaningSec\":\"%v\"}", cnt, n, length, position, remaining, length, position, remaining) } else { fmt.Println("Seeker is nil") fmt.Fprintf(w, "{\"status\":\"ok\", \"SampleRate\":%d}", n)