ydj 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/ydj.rb +1 -3
  2. data/lib/ydj/version.rb +1 -1
  3. metadata +1 -1
data/lib/ydj.rb CHANGED
@@ -7,9 +7,7 @@ module Ydj
7
7
  page = 1
8
8
  while urls = client.videos_by(:user => channel, :per_page => 50, :page => page).videos.collect{|v| v.player_url} and urls.any?
9
9
  puts "Page #{page}, found #{urls.count} videos"
10
- urls.each do |url|
11
- `youtube-dl --audio-quality 320k --max-quality 22 -o '%(title)s.%(ext)s' -x --audio-format mp3 #{url}`
12
- end
10
+ system("youtube-dl --audio-quality 320k --max-quality 22 -o '%(title)s.%(ext)s' -x --audio-format mp3 \"#{urls.join(' ')}\"")
13
11
  page = page + 1
14
12
  end
15
13
  end
@@ -1,3 +1,3 @@
1
1
  module Ydj
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ydj
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: