Make DASH absolute urls when local

pull/3554/head
Brahim Hadriche 2 years ago
parent 05258d56bd
commit 1fb0a49592

@ -42,7 +42,7 @@ module Invidious::Routes::API::Manifest
if local if local
adaptive_fmts.each do |fmt| adaptive_fmts.each do |fmt|
fmt["url"] = JSON::Any.new(URI.parse(fmt["url"].as_s).request_target) fmt["url"] = JSON::Any.new("#{HOST_URL}#{URI.parse(fmt["url"].as_s).request_target}")
end end
end end

Loading…
Cancel
Save