From c2b92be4a3bfeceda7c300d987350868d56bfa10 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Wed, 21 Feb 2024 14:15:17 -0300 Subject: [PATCH] test123 --- src/invidious/routes/video_playback.cr | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr index ec18f3b8..3a4af8dc 100644 --- a/src/invidious/routes/video_playback.cr +++ b/src/invidious/routes/video_playback.cr @@ -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 = ""