lib/viddl/video/download.rb
def command_line(options = {})
        download_path = path(options)
        output_flag = "-o '#{download_path}.%(ext)s'"
        "youtube-dl #{@video.source_url} #{FORMAT_ARG} #{options[:flags]} #{output_flag}"
      end
# Command line to download the video file
# @param [Hash] options
# @option options [String, File] :download_path Path where download should be stored (default: system temp directory)
# @option options [String] :flags Flags to pass to youtube-dl
# @return [String]
Command line to download the video file
Command line to download the video file
def command_line(options = {})
        download_path = path(options)
        output_flag = "-o '#{download_path}.%(ext)s'"
        "youtube-dl #{@video.source_url} #{FORMAT_ARG} #{options[:flags]} #{output_flag}"
      end
def command_line ( options = { } ) download_path = path ( options ) output_flag = "-o '#{download_path}.%(ext)s'" "youtube-dl #{@video.source_url} #{FORMAT_ARG} #{options[:flags]} #{output_flag}" end
Command line to download the video file
Command line to download the video file
None
String
options
:flags Flags to pass to youtube-dl
: flags Flags to pass to youtube - dl
None