diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-04-16 13:08:10 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-04-16 13:08:10 -0500 |
| commit | 6c5cbca575624248942b9062a77816516f9cb22b (patch) | |
| tree | 79b11202f3d1e95074bf5527b987b648780a535f | |
| parent | 830d6fae8e09937b6c0a0dfffc58f46d6be91fd9 (diff) | |
| download | invidious-6c5cbca575624248942b9062a77816516f9cb22b.tar.gz invidious-6c5cbca575624248942b9062a77816516f9cb22b.tar.bz2 invidious-6c5cbca575624248942b9062a77816516f9cb22b.zip | |
Add support for fvip in videoplayback
| -rw-r--r-- | src/invidious.cr | 3 |
1 files changed, 2 insertions, 1 deletions
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)) |
