diff --git a/src/invidious/routes/api/manifest.cr b/src/invidious/routes/api/manifest.cr index b6c5cbf3..b2085666 100644 --- a/src/invidious/routes/api/manifest.cr +++ b/src/invidious/routes/api/manifest.cr @@ -10,7 +10,7 @@ module Invidious::Routes::API::Manifest if !CONFIG.invidious_companion.empty? invidious_companion = CONFIG.invidious_companion.sample - return env.redirect "#{invidious_companion.public_url.to_s}/api/manifest/dash/id/#{id}?#{env.params.query}" + return env.redirect "#{invidious_companion.public_url}/api/manifest/dash/id/#{id}?#{env.params.query}" end # Since some implementations create playlists based on resolution regardless of different codecs, diff --git a/src/invidious/routes/video_playback.cr b/src/invidious/routes/video_playback.cr index bac79b5c..391aa139 100644 --- a/src/invidious/routes/video_playback.cr +++ b/src/invidious/routes/video_playback.cr @@ -255,7 +255,7 @@ module Invidious::Routes::VideoPlayback def self.latest_version(env) if !CONFIG.invidious_companion.empty? invidious_companion = CONFIG.invidious_companion.sample - return env.redirect "#{invidious_companion.public_url.to_s}/latest_version?#{env.params.query}" + return env.redirect "#{invidious_companion.public_url}/latest_version?#{env.params.query}" end id = env.params.query["id"]?