From 675ada19058cb99bf5806e4496744a31bb5c7d4b Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 10 Dec 2020 19:07:10 +0530 Subject: [PATCH] Patch for invidious live streams. --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 56d2f5e..070d4a3 100644 --- a/main.go +++ b/main.go @@ -31,6 +31,10 @@ func genericHTTPProxy(w http.ResponseWriter, req *http.Request) { host := q.Get("host") q.Del("host") + if len(host) <= 0 { + host = q.Get("hls_chunk_host") + } + if len(host) <= 0 { host = getHost(req.URL.Path) }