mirror of
https://github.com/iv-org/invidious
synced 2024-11-16 21:25:31 +00:00
Update src/invidious/videos/caption.cr
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
7d435f082b
commit
3615bb0e62
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user