Solved command-line friendly streaming music player for di.fm

dch

Developer
This started off as a question and I found the answer before posting it. https://di.fm/ is a streaming music site, mainly dance/techno stuff. If you install audio/musicpd and audio/ympd you can simply paste the streaming URL that di.fm give you into the "add stream" button at the top of ypmd's web interface and you're away. Sweet.

As a bonus, if you have ftp/curl and textproc/jq installed, then grab your secret key from difm website, and then use this to create a playlist that can be imported into ypmd or any other music player that contains ALL THE CHANNELS:

curl -s https://www.di.fm/_papi/v1/di/currently_playing | jq -r '.[] | "http://prem2.di.fm/\(.channel_key)_hi?abc123456789"' > /media/music/difm.m3u
 
Back
Top