Skip to content

Commit

Permalink
don't display auto-generated captions by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed Dec 17, 2024
1 parent c64ebda commit fae93a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/embed/media_tag_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def captions
@resource.caption_files.map.with_index do |caption_file, i|
tag.track(src: caption_file.file_url, kind: 'captions',
srclang: caption_file.language_code, label: caption_file.media_caption_label,
default: (i.zero? ? '' : nil))
default: (i.zero? && !caption_file.sdr_generated? ? '' : nil))
end
)
end
Expand Down

0 comments on commit fae93a1

Please sign in to comment.