Class: Ehbrs::Tools::Runner::Videos::Languages

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs/tools/runner/videos/languages.rb,
lib/ehbrs/tools/runner/videos/languages/track.rb,
lib/ehbrs/tools/runner/videos/languages/language.rb,
lib/ehbrs/tools/runner/videos/languages/labelized.rb,
lib/ehbrs/tools/runner/videos/languages/file_runner.rb

Defined Under Namespace

Classes: FileRunner, Labelized, Language, Track

Instance Method Summary collapse

Instance Method Details

#include_audios?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/ehbrs/tools/runner/videos/languages.rb', line 37

def include_audios?
  parsed.audios?
end

#include_subtitles?Boolean

Returns:

  • (Boolean)


41
42
43
# File 'lib/ehbrs/tools/runner/videos/languages.rb', line 41

def include_subtitles?
  parsed.subtitles?
end

#keep_languagesObject



33
34
35
# File 'lib/ehbrs/tools/runner/videos/languages.rb', line 33

def keep_languages
  parsed.keep.map(&:strip).compact_blank
end

#keep_languages?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/ehbrs/tools/runner/videos/languages.rb', line 22

def keep_languages?
  keep_languages.any?
end

#runObject



28
29
30
31
# File 'lib/ehbrs/tools/runner/videos/languages.rb', line 28

def run
  infov 'Keep', keep_languages
  all_languages_banner
end

#traverser_check_file(file) ⇒ Object



45
46
47
# File 'lib/ehbrs/tools/runner/videos/languages.rb', line 45

def traverser_check_file(file)
  @files << ::Ehbrs::Tools::Runner::Videos::Languages::FileRunner.new(self, file)
end