Sha256: 0c5341f1394cb3fe44cdbbb8bfc99c56c73bef201d8b7002921d8a645f00fcd7
Contents?: true
Size: 550 Bytes
Versions: 4
Compression:
Stored size: 550 Bytes
Contents
require 'youtube-dl/version' require 'youtube-dl/options' require 'youtube-dl/runner' module YoutubeDL extend self # Downloads given array of URLs with any options passed # # @param urls [String, Array] URLs to download # @param options [Hash] Downloader options def download(urls, options={}) # force convert urls to array urls = [urls] unless urls.is_a? Array urls.each do |url| runner = YoutubeDL::Runner.new(url, YoutubeDL::Options.new(options)) runner.run end end alias_method :get, :download end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
youtube-dl.rb-0.0.5 | lib/youtube-dl.rb |
youtube-dl.rb-0.0.4 | lib/youtube-dl.rb |
youtube-dl.rb-0.0.3 | lib/youtube-dl.rb |
youtube-dl.rb-0.0.2 | lib/youtube-dl.rb |