betere messages

This commit is contained in:
Ward Wouts 2006-02-17 13:32:19 +00:00
parent 5e553cdd9c
commit 934463244f

View file

@ -53,7 +53,7 @@ def deleteold(podcast)
Dir.open(@podcasts[podcast]["savedir"]).each {|entry|
if File.file?("#{@podcasts[podcast]["savedir"]}/#{entry}") &&
! @filelist[entry]
puts "deleting #{entry}"
puts " deleting #{entry}"
File.unlink("#{@podcasts[podcast]["savedir"]}/#{entry}")
end
}
@ -69,7 +69,7 @@ def getenclosure(podcast, enclosure)
end
@filelist[filename] = true
if ! File.exists?("#{@podcasts[podcast]["savedir"]}/#{filename}")
puts "gotta get #{@podcasts[podcast]["savedir"]}/#{filename}"
puts " getting #{@podcasts[podcast]["savedir"]}/#{filename}"
response = fetch(cast)
File.open("#{@podcasts[podcast]["savedir"]}/#{filename}", "w"){|f|
f.print(response.body)