Skip to content

Instantly share code, notes, and snippets.

View rishabhstein's full-sized avatar
😯
Curious

Rishabh P. Sharma rishabhstein

😯
Curious
View GitHub Profile
@rishabhstein
rishabhstein / bbcradio.sh
Created May 19, 2018 09:01 — forked from nodebugle/bbcradio.sh
Play BBC Radio with mpd or mplayer from the command line
#!/bin/bash
play() {
playlist="http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/low/ak/bbc_$1.m3u8"
echo $playlist
if mpc
then
mpc add $playlist
mpc play
else
mplayer $playlist