packages/sound/mpc/files/pls-handler.sh
nbd a6e251cc93 add pls handler to mpc
this patch adds a little script to the mpc package. pls handler takes
a .pls file as argument - mpd is then playing the stream.

cheers
michu

Signed-off-by: Michael Vogt <michu at neophob.com>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@10352 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-02 01:48:25 +00:00

5 lines
121 B
Bash

#!/usr/bin/env sh
echo parameter: file.pls
mpc clear
grep '^File[0-9]*' $1 | sed -e 's/^File[0-9]*=//' | mpc add
mpc play