ydj 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ydj.rb +1 -3
- data/lib/ydj/version.rb +1 -1
- 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.
|
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
|
data/lib/ydj/version.rb
CHANGED