From 51ae2533f84e8b9388b773885a3e78df9daf6d26 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sat, 11 Oct 2014 16:38:18 +0200 Subject: make rating a variable --- clerk | 48 ++++++++++++++++++++++++------------------------ 1 file 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 -- cgit v1.2.3-24-g4f1b