Created
December 6, 2015 21:40
-
-
Save yousefamar/cdff9ba606182a78487f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
mkdir -p ./di.fm | |
cd ./di.fm | |
curl --silent "http://listen.di.fm/public3" | python -mjson.tool | grep playlist | sed -e 's/^[[:space:]]*//' | cut -d " " -f2 | tr -d '"' \ | |
| while read url | |
do | |
echo "Downloading: $url" | |
curl -O "$url" | |
done | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment