From 6c5cbca575624248942b9062a77816516f9cb22b Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 16 Apr 2018 13:08:10 -0500 Subject: [PATCH] Add support for fvip in videoplayback --- src/invidious.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 7e950317..d8f03ff7 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -800,8 +800,9 @@ end get "/videoplayback" do |env| query_params = env.params.query + fvip = query_params["fvip"] mn = query_params["mn"].split(",")[0] - host = "https://r5---#{mn}.googlevideo.com" + host = "https://r#{fvip}---#{mn}.googlevideo.com" url = "/videoplayback?#{query_params.to_s}" client = make_client(URI.parse(host))