fix ameba Redundant use of Object#to_s in interpolation

This commit is contained in:
Emilien 2024-12-08 22:24:57 +01:00
parent a571eeaa38
commit ab72bbad7a
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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"]?