mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix raw parameter for videos in listen mode (#2270)
This commit is contained in:
parent
0cdf13742a
commit
578bbcd181
1 changed files with 5 additions and 3 deletions
|
@ -167,9 +167,11 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
|
|||
if params.listen
|
||||
url = audio_streams[0]["url"].as_s
|
||||
|
||||
audio_streams.each do |fmt|
|
||||
if fmt["bitrate"].as_i == params.quality.rchop("k").to_i
|
||||
url = fmt["url"].as_s
|
||||
if params.quality.ends_with? "k"
|
||||
audio_streams.each do |fmt|
|
||||
if fmt["bitrate"].as_i == params.quality.rchop("k").to_i
|
||||
url = fmt["url"].as_s
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue