Class: Vidload::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/vidload/cli.rb

Instance Method Summary collapse

Instance Method Details

#mp2t(video_url) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/vidload/cli.rb', line 14

def mp2t(video_url)
  params = {
    video_url: video_url,
    video_name: options[:video_name],
    hls_url: options[:hls_url],
    master_playlist_name: options[:master_playlist_name],
    playwright_cli_path: options[:playwright_cli_path],
    video_referer: options[:video_referer],
    ts_seg_pattern: options[:ts_seg_pattern],
    hls_index_pattern: options[:hls_index_pattern],
    author_name: options[:author_name],
    output_dir: options[:output_dir],
  }

  process_mp2t(params)
end