summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgueux <gueux@gueux.org>2010-04-21 09:37:15 +0000
committergueux <gueux@gueux.org>2010-04-21 09:37:15 +0000
commit15ee83cfd8265caae69a952bffccf86a2b516ab3 (patch)
tree7850291bfa14f2dcc4ed4fefb7b367f897ad6edd
parentc73ab2f60c8c8777085f4db463c6f43968c87b39 (diff)
mpc-flacinfo.sh host + port
-rw-r--r--mpc-flacinfo.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/mpc-flacinfo.sh b/mpc-flacinfo.sh
index 19a134c..104a732 100644
--- a/mpc-flacinfo.sh
+++ b/mpc-flacinfo.sh
@@ -1,8 +1,10 @@
#!/bin/sh
+HOST="localhost"
+PORT="6600"
MUSIC_PATH="/home/music"
-file=$MUSIC_PATH/$(mpc current -f "%file%")
+file=$MUSIC_PATH/$(mpc -h "$HOST" -p "$PORT" current -f "%file%")
echo "$file"
flacinfo "$file"