ydj 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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