Download Magnatune’s songs quickly
Here’s a quick bash script that gets in the argument line the URL of a Magnatune hifi.m3u playlist and automatically downloads the (freely available) 128kbps mp3 songs listed in that playlist. Save the script as magna.sh and give it executable rights. Songs are saved on the terminal’s current working directory. Do not reuse the script on another terminal window if the previous downloading operation hasn’t finished yet.
#!/bin/sh
wget $1
cat hifi.m3u | while read i ; do wget $i ; done
rm -f hifi.m3u
Example of usage:
./magna.sh http://magnatune.com/artists/albums/westexit-nocturne/hifi.m3u
Do not forget to buy the album and support its artist if you actually like what you hear.
![]()



