From e28d86018e1fc2bfbc6f63b52f5bdae152b8de0d Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sat, 21 Dec 2024 01:36:06 -0300 Subject: [PATCH] and also disable range query becuase I'm not willing to fix it right now --- httppaths.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/httppaths.go b/httppaths.go index 1f466cf..c57f3e1 100644 --- a/httppaths.go +++ b/httppaths.go @@ -96,9 +96,9 @@ func videoplayback(w http.ResponseWriter, req *http.Request) { // if c == "WEB" { // q.Set("alr", "yes") // } - if req.Header.Get("Range") != "" { - q.Set("range", req.Header.Get("Range")) - } + // if req.Header.Get("Range") != "" { + // q.Set("range", req.Header.Get("Range")) + // } path := req.URL.EscapedPath() @@ -108,7 +108,6 @@ func videoplayback(w http.ResponseWriter, req *http.Request) { } proxyURL.RawQuery = q.Encode() - fmt.Print(proxyURL) // https://github.com/FreeTubeApp/FreeTube/blob/5a4cd981cdf2c2a20ab68b001746658fd0c6484e/src/renderer/components/ft-shaka-video-player/ft-shaka-video-player.js#L1097 body := []byte{0x78, 0} // protobuf body