1
0
Fork 0
forked from Fijxu/invidious
This commit is contained in:
Fijxu 2024-02-21 14:15:17 -03:00
parent 8a76e64ec1
commit 40d7d04803
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -42,6 +42,11 @@ module Invidious::Routes::VideoPlayback
headers["Range"] = "bytes=#{range_for_head}"
end
headers["Alt-Used"] = host
headers["Origin"] = "https://www.youtube.com"
headers["Referer"] = "https://www.youtube.com/"
headers["User-Agent"] = "Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0"
client = make_client(URI.parse(host), region, force_resolve = true)
response = HTTP::Client::Response.new(500)
error = ""