Patch for invidious live streams.
This commit is contained in:
parent
b7fdac0c1b
commit
675ada1905
1 changed files with 4 additions and 0 deletions
4
main.go
4
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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue