mirror of
https://github.com/iv-org/invidious
synced 2024-11-09 01:10:27 +00:00
Fix raw parameter for videos in listen mode (#2270)
This commit is contained in:
parent
0cdf13742a
commit
578bbcd181
@ -167,9 +167,11 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
|
|||||||
if params.listen
|
if params.listen
|
||||||
url = audio_streams[0]["url"].as_s
|
url = audio_streams[0]["url"].as_s
|
||||||
|
|
||||||
audio_streams.each do |fmt|
|
if params.quality.ends_with? "k"
|
||||||
if fmt["bitrate"].as_i == params.quality.rchop("k").to_i
|
audio_streams.each do |fmt|
|
||||||
url = fmt["url"].as_s
|
if fmt["bitrate"].as_i == params.quality.rchop("k").to_i
|
||||||
|
url = fmt["url"].as_s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user