wget abd block

Y

Yerlan Kusainov

Hello. I'm want write a script, which download all the podcast from
rss-feed.
This is code, not work:
def wget
@mp3_links.each do |m|
system("wget", "#{m}")
end
end
I understand that to be linked to the delay, but how?
 
D

David Masover

Hello. I'm want write a script, which download all the podcast from
rss-feed.

Try bashpodder:

http://lincgeek.org/bashpodder/
This is code, not work:
def wget
@mp3_links.each do |m|
system("wget", "#{m}")
end
end

A nit: Why would you do "#{m}"? If m is already a string, just use it by
itself:

system 'wget', m

If it's not, you could do to_s, but system probably already knows to do that.
I understand that to be linked to the delay, but how?

What delay? I'm not sure what you mean here...
 
Y

Yerlan Kusainov

thx for the reply, i finished write the script.
You're right, it was necessary to write only system("wget ",m)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top