Update src/invidious/routes/video_playback.cr

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
このコミットが含まれているのは:
Brahim Hadriche 2023-03-12 18:36:03 -04:00 committed by GitHub
コミット 3848c3f53f
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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