mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 21:47:26 +00:00
Update src/invidious/routes/video_playback.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
d57d278f32
commit
3848c3f53f
@ -278,7 +278,7 @@ module Invidious::Routes::VideoPlayback
|
|||||||
end
|
end
|
||||||
|
|
||||||
if itag.nil?
|
if itag.nil?
|
||||||
fmt = video.fmt_stream[-1]
|
fmt = video.fmt_stream[-1]?
|
||||||
else
|
else
|
||||||
fmt = video.fmt_stream.find(nil) { |f| f["itag"].as_i == itag } || video.adaptive_fmts.find(nil) { |f| f["itag"].as_i == itag }
|
fmt = video.fmt_stream.find(nil) { |f| f["itag"].as_i == itag } || video.adaptive_fmts.find(nil) { |f| f["itag"].as_i == itag }
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user