Quote:
Originally Posted by d_creber
|
The same problem I had, they are providing a play list as opposed to a stream for you. You will need to edit your control.sh and add something similar to:
InternetPlaylistLoad() {
curl -s "$@" | grep :// | sed 's/File[0-9][0-9]*=//' >/tmp/mplayer.playlist
loadplaylist /tmp/mplayer.playlist
}
prior to the case statement and add a case for each station eg:
r2)
InternetPlaylistLoad "http://bbc.co.uk/radio/listen/live/r2.asx"
;;
You will then need to edit the mplayer.ini to add a key mapping to start the play list playing.
Dave
PS: please note that I said similar to, you might need to modify the sed arguments to extract the stream URLs.
A little further testing shows you might need:
curl -s "$@" | grep :// | sed 's/[^I]*<ref href="//' | sed 's/" \/>//' >/tmp/mplayer.playlist
where I have a slightly different statement above.