lib/jetel/downloader/backends/aria.rb in jetel-0.0.4 vs lib/jetel/downloader/backends/aria.rb in jetel-0.0.5

- old
+ new

@@ -12,10 +12,11 @@ $stdout.sync = true opts = BaseDownloader::OPTS_DOWNLOAD.merge(opts) - cmd = "aria2c -d #{opts[:dir]} #{url}" + cmd = "aria2c -j 4 -t 600 -d \"#{opts[:dir]}\" #{url}" + puts(cmd) PTY.spawn(cmd) do |stdout, stdin, pid| begin # Do stuff with the output here. Just printing to show it works stdout.each { |line| print line }