Class: EncoderTools::CLI::Subtitles::FixLengths

Inherits:
Base
  • Object
show all
Defined in:
lib/encoder-tools/cli/subtitles/fix_lengths.rb

Constant Summary collapse

DEFAULT_THRESHOLD =
5

Instance Attribute Summary

Attributes inherited from Base

#options, #shell

Instance Method Summary collapse

Methods inherited from Base

#parse, #parser, parser, #read, #write

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from EncoderTools::CLI::Base

Instance Method Details

#runObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/encoder-tools/cli/subtitles/fix_lengths.rb', line 7

def run
  begin
    if long_subtitles? && fix_subtitles?
      write fix_subtitles
    end

    return nil
  rescue Interrupt
    # just return on ^C
  end
end