Class: Ehbrs::Tools::Runner::Videos::Opensubtitles
- Inherits:
-
Object
- Object
- Ehbrs::Tools::Runner::Videos::Opensubtitles
- Defined in:
- lib/ehbrs/tools/runner/videos/opensubtitles.rb
Instance Method Summary collapse
Instance Method Details
#output_content ⇒ Object
24 25 26 |
# File 'lib/ehbrs/tools/runner/videos/opensubtitles.rb', line 24 def output_content subtitles.map { |v| "#{format_url(v.source_uri)}\n" }.join end |
#run ⇒ Object
16 17 18 |
# File 'lib/ehbrs/tools/runner/videos/opensubtitles.rb', line 16 def run parsed.download? ? run_download : run_output end |
#run_download ⇒ Object
20 21 22 |
# File 'lib/ehbrs/tools/runner/videos/opensubtitles.rb', line 20 def run_download subtitles.map { |sub| download_sub(sub) } end |