Update src/invidious/videos/caption.cr

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
このコミットが含まれているのは:
syeopite 2023-08-24 16:21:05 -07:00
コミット 3615bb0e62
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: A73C186DA3955A1A
1個のファイルの変更1行の追加4行の削除

ファイルの表示

@ -28,10 +28,7 @@ module Invidious::Videos
language_code = caption["languageCode"].to_s
base_url = caption["baseUrl"].to_s
auto_generated = false
if caption["kind"]? && caption["kind"] == "asr"
auto_generated = true
end
auto_generated = (caption["kind"]? == "asr")
captions_list << Captions::Metadata.new(name, language_code, base_url, auto_generated)
end