summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-10-11 16:38:18 +0200
committerRasmus Steinke <rasi@xssn.at>2014-10-11 16:38:18 +0200
commit51ae2533f84e8b9388b773885a3e78df9daf6d26 (patch)
tree0f5c722f926b0a99389f02cd0b5fefa5747a1c31
parent5a62b7694dee3a8ff7acd3fa90d36bb3e3aad2b9 (diff)
downloadperl-app-clerk-51ae2533f84e8b9388b773885a3e78df9daf6d26.tar.gz
perl-app-clerk-51ae2533f84e8b9388b773885a3e78df9daf6d26.tar.xz
make rating a variable
-rwxr-xr-xclerk48
1 files changed, 24 insertions, 24 deletions
diff --git a/clerk b/clerk
index d081020..b8ebd27 100755
--- a/clerk
+++ b/clerk
@@ -1272,37 +1272,37 @@ if [[ "$1" == "-h" ]]; then
echo "Options"
echo ""
echo "General"
- echo " -h this help message"
- echo " -show show currently playing track"
- echo " -update update album/track caches"
+ echo " -h this help message"
+ echo " -show show currently playing track"
+ echo " -update update album/track caches"
echo ""
echo "Library"
- echo " -library browse library"
- echo " -a add album"
- echo " -ai insert album"
- echo " -ar replace album"
- echo " -ra play random album"
- echo " -rs play random songs"
- echo " -t add track"
- echo " -ti insert track"
- echo " -latest show latest additions"
+ echo " -library browse library"
+ echo " -a add album"
+ echo " -ai insert album"
+ echo " -ar replace album"
+ echo " -ra play random album"
+ echo " -rs play random songs"
+ echo " -t add track"
+ echo " -ti insert track"
+ echo " -latest show latest additions"
echo ""
echo "Playlist"
- echo " -queue show current queue"
- echo " -queuedl delete items from current queue"
- echo " -playlists manage playlists"
- echo " -suspend suspend current queue"
- echo " -resume resume suspended queue"
- echo " -rss load podcast"
+ echo " -queue show current queue"
+ echo " -queuedl delete items from current queue"
+ echo " -playlists manage playlists"
+ echo " -suspend suspend current queue"
+ echo " -resume resume suspended queue"
+ echo " -rss load podcast"
echo " (podcast should be placed in ~/.config/clerk/podcasts"
echo " with format NAME \ URL)"
echo ""
echo "Ratings"
- echo " -rate show rating prompt"
- echo " -ralbum rate current album"
- echo " -rtrack rate current track"
- echo " -lrated add x random tracks with rating >=4"
- echo " -rcurrent rate current track with 10"
+ echo " -rate show rating prompt"
+ echo " -ralbum rate current album"
+ echo " -rtrack rate current track"
+ echo " -lrated add x random tracks with rating >=4"
+ echo " -rcurrent XX rate current track with 10"
elif [[ "$1" == "-a" ]]; then
@@ -1348,7 +1348,7 @@ elif [[ "$1" == "-resume" ]]; then
elif [[ "$1" == "-playlists" ]]; then
managePlaylists
elif [[ "$1" == "-rcurrent" ]]; then
- mpc sticker "$(mpc current -f '%file%')" set rating 10
+ mpc sticker "$(mpc current -f '%file%')" set rating $2
else
dplayPrompt
fi