Skip to content

Instantly share code, notes, and snippets.

View gregoryStarr's full-sized avatar

Gregory Starr gregoryStarr

View GitHub Profile
@fernandes
fernandes / di.sh
Last active June 24, 2019 19:16
Download all playlists from di.fm
#/bin/sh
# Adapted from http://mpd.wikia.com/wiki/Hack:di.fm-playlists
URL="http://listen.di.fm/public3"
token=$1; dir=$2
if [ "$dir" == "" -o "$token" == "" ]; then
echo "Usage: $0 TOKEN PATH_TO_SAVE"