From 985ef449c5f03c3fb190467016744081e8aee764 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Sat, 21 Dec 2024 00:34:04 -0300 Subject: [PATCH] alr query param makes youtube return an URL and not video data --- httppaths.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/httppaths.go b/httppaths.go index 2c3eead..1f466cf 100644 --- a/httppaths.go +++ b/httppaths.go @@ -45,6 +45,7 @@ func videoplayback(w http.ResponseWriter, req *http.Request) { if c == "" { w.WriteHeader(400) io.WriteString(w, "'c' query string undefined.") + return } host := q.Get("host") @@ -92,9 +93,9 @@ func videoplayback(w http.ResponseWriter, req *http.Request) { return } - if c == "WEB" { - q.Set("alr", "yes") - } + // if c == "WEB" { + // q.Set("alr", "yes") + // } if req.Header.Get("Range") != "" { q.Set("range", req.Header.Get("Range")) }