Update src/invidious/routes/video_playback.cr

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
pull/3627/head
Brahim Hadriche 2 years ago committed by GitHub
parent d57d278f32
commit 3848c3f53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -278,7 +278,7 @@ module Invidious::Routes::VideoPlayback
end
if itag.nil?
fmt = video.fmt_stream[-1]
fmt = video.fmt_stream[-1]?
else
fmt = video.fmt_stream.find(nil) { |f| f["itag"].as_i == itag } || video.adaptive_fmts.find(nil) { |f| f["itag"].as_i == itag }
end

Loading…
Cancel
Save