Skip to content

Commit

Permalink
Apply --subtitle-forced when scanning subtitles. Thanks @rhapsodians.
Browse files Browse the repository at this point in the history
  • Loading branch information
lisamelton committed Jul 7, 2015
1 parent 62207b6 commit 9f23d3c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/transcode-video
Original file line number Diff line number Diff line change
Expand Up @@ -987,10 +987,12 @@ HERE

if burn_track == :scan or @force_subtitle == :scan
track_order = ['scan']
scan = true
else
track_order = []
track_order << burn_track.to_s unless burn_track.nil?
track_order << @force_subtitle.to_s unless @force_subtitle.nil?
scan = false
end

case @extra_subtitle.first
Expand All @@ -1015,6 +1017,7 @@ HERE
unless track_order.empty?
track_order = track_order.join(',')
handbrake_options['subtitle'] = track_order if track_order.gsub(/,/, '') != ''
handbrake_options['subtitle-forced'] = nil if scan
handbrake_options['subtitle-burned'] = nil unless burn_track.nil?
handbrake_options['subtitle-default'] = nil unless @force_subtitle.nil?
end
Expand Down

0 comments on commit 9f23d3c

Please sign in to comment.