From b7fe1db89a7b33ab2f9240e69acb3dfcd5210bd5 Mon Sep 17 00:00:00 2001 From: Andrew Zhao Date: Sun, 10 Jan 2021 18:00:45 -0500 Subject: [PATCH] save host when using dash manifest --- src/invidious.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious.cr b/src/invidious.cr index 5235d826..deb24ac3 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -3190,7 +3190,8 @@ get "/api/manifest/dash/id/:id" do |env| url = url.rchop("") if local - url = URI.parse(url).full_path + uri = URI.parse(url) + url = "#{uri.full_path}host/#{uri.host}/" end "#{url}"