A little spacing can help.

This commit is contained in:
Darren Cauthon
2014-05-28 07:40:52 -05:00
parent b272ec2c7a
commit b43e2f65d8

View File

@@ -14,7 +14,9 @@ podcasts.each do |podcast|
source = podcast.at('enclosure')['url'].to_s
name = source.split('/').last
local_file = "downloads/#{name}"
next if File.exist? local_file
File.open(local_file, "wb") do |file|
puts " downloading " + name
file.write open(source).read