[multimedia] j-p-s: fix typo, add a tip, symlink

Fix a dumb typo in just-play-something.sh, improve the README with a
new tip, and add a symbolic link in the bin/ directory.
This commit is contained in:
Matteo Cypriani 2013-04-26 00:32:28 -04:00
parent 42284c9f9f
commit 84cc9667de
3 changed files with 10 additions and 5 deletions

1
bin/just-play-something Symbolic link
View File

@ -0,0 +1 @@
../multimedia/just-play-something.sh

View File

@ -28,10 +28,14 @@ What this script will do for you:
your library and play it;
- if music is already playing, it will be paused.
Tip: you can bind a short button press to just-play-something, and a
long press (or another button) to mpc clear && just-play-something, so
that if you don't like what is currently in the playlist, you can force
playing a random album with a long press.
Tips:
- You can bind a short button press to 'just-play-something', and a long
press (or another button) to 'mpc clear ; just-play-something', so
that if you don't like what is currently in the playlist, you can
force playing a random album with a long press.
- Running this script from another host works just fine by setting the
MPD_HOST variable (and possibly MPD_PORT), for example:
MPD_HOST=192.168.0.254 just-play-something
# metflac-field2field.sh #

View File

@ -31,7 +31,7 @@ if ! mpc >/dev/null 2>&1 ; then
fi
# If the playlist is empty, add a random album to the playlist
if [ "$(mpc playlist 2>/devlnull)" = "" ] ; then
if [ "$(mpc playlist 2>/dev/null)" = "" ] ; then
NB_ALBUMS=`mpc list Album | wc -l`
RAND_ALBUM_NUM=`random $NB_ALBUMS`
RANDOM_ALBUM=`mpc list Album | sed -n ${RAND_ALBUM_NUM}p`