Skip to content

Commit

Permalink
Update src/invidious/videos/caption.cr
Browse files Browse the repository at this point in the history
Co-authored-by: Samantaz Fox <[email protected]>
  • Loading branch information
syeopite and SamantazFox committed Aug 24, 2023
1 parent 7d435f0 commit 3615bb0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/invidious/videos/caption.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3615bb0

Please sign in to comment.