A .m3u Remote file batch downloader

phisrow

Golden Member
Sep 6, 2004
1,399
0
0
Picking up from here.

This shell script, accepts an input, foo.m3u or *.m3u for batch jobs, and loops through each file, sending each line to wget. Wget dumps its output into the directory from which the script was executed. It isn't pretty, I'm sure I've done stupid things, and it isn't multithreaded; but it should work.

Also, If anybody has constructive criticism, I'm all ears. I'm very, very new; but trying to improve.

Kwestyuns, it sounds like you are on Windows. You'll need to install cygwin in order to run the script.

 

Manzanita

Junior Member
Jun 22, 2006
1
0
0
I actually newer at this than you, but regarding the script you sent Kwestyuns for converting m3u to mp3 files, how do you actually run that script? I installed cygwin as you suggest. And I copied the script you sent to c:\cygwin as a .bat file, then opened cygwin and run c:/cygwin/m3u_converter.bat and nothing happened.

Also, I'm actually just trying to convert 1 file to mp3. I tried doing this with Windows Media Player -- as Kwestyuns suggests, but I do not see any options there to do this. Furthermore, from what I read on the previous thread (where Kwestyuns first posted) it sounds like what i have is not really a file, but sort of a link to a place where I copied this from. So I'm wondering if its even possible that I do this.

Thanks in advance for your help!
Manzanita
 

phisrow

Golden Member
Sep 6, 2004
1,399
0
0
Manzanita: Cygwin provides a linux like shell within windows.

You install cygwin, run it(from the shortcut it provides) and you'll get a shell prompt(looks rather like the DOS prompt; but isn't). If you type ls <enter>, you'll see the contents of whatever folder you nominated as your "home" directory during installation. What you want to do is copy both the m3u and the script above( named m3uscript.sh or something of that sort) into your home directory. Then execute the following commands:

chmod 555 m3uscript.sh <enter>

./m3uscript.sh *.m3u <enter>

If you do that, assuming your .m3u file referrs to mp3s streamed off the internet, that are still available for download, the script will download them.

Let me know if that doesn't help.