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)


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

def include_audios?
  parsed.audios?
end

#include_subtitles?Boolean

Returns:

  • (Boolean)


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

def include_subtitles?
  parsed.subtitles?
end

#keep_languagesObject



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

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

#keep_languages?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/ehbrs/tools/runner/videos/languages.rb', line 17

def keep_languages?
  keep_languages.any?
end

#runObject



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

def run
  infov 'Keep', keep_languages
  all_languages_banner
end

#traverser_check_file(file) ⇒ Object



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

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