Skip to content

Commit

Permalink
Merge pull request #5512 from avalonmediasystem/safe_captions
Browse files Browse the repository at this point in the history
Add safe navigator to captions check
  • Loading branch information
masaball authored Dec 8, 2023
2 parents 95dd5af + 864485e commit ef957f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/master_files/hls_manifest.m3u8.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Unless required by applicable law or agreed to in writing, software distributed
#EXTM3U
<% if @master_file.has_captions? %>
<% captions_list = @master_file.supplemental_file_captions %>
<% captions_list.append(@master_file.captions) if @master_file.captions.content %>
<% captions_list.append(@master_file.captions) if @master_file.captions&.content %>
<% captions_list.each_with_index do |caption, index| %>
<% label = caption.is_a?(SupplementalFile) ? caption.label : 'English' %>
<% language = caption.is_a?(SupplementalFile) ? caption.language : 'en' %>
Expand Down

0 comments on commit ef957f3

Please sign in to comment.