From 8c755cf28cb4d1caae687b2097f55d4282b5b8bf Mon Sep 17 00:00:00 2001 From: Fijxu Date: Tue, 8 Oct 2024 23:12:10 -0300 Subject: [PATCH] fixup! fixup! Use mvi and mn query params to build host url --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index bd4855b..73411e3 100644 --- a/main.go +++ b/main.go @@ -100,6 +100,7 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { q := req.URL.Query() host := q.Get("host") + q.Del("host") if len(host) <= 0 { host = q.Get("hls_chunk_host") @@ -123,12 +124,8 @@ func (*requesthandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { return } host = "rr" + mvi + "---" + mn[0] + ".googlevideo.com" - } else { - io.WriteString(w, "Not possible to build host url from `mvi` and `mn`.") } - q.Del("host") - parts := strings.Split(strings.ToLower(host), ".") if len(parts) < 2 {