mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-22 21:43:38 +00:00
fix ameba Redundant use of Object#to_s
in interpolation
This commit is contained in:
parent
a571eeaa38
commit
ab72bbad7a
@ -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,
|
||||
|
@ -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"]?
|
||||
|
Loading…
Reference in New Issue
Block a user