summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-08-25 23:50:52 +0200
committerRasmus Steinke <rasi@xssn.at>2014-08-25 23:50:52 +0200
commite138a82f29c53dd36458c7f8ffc7c63c1f8fb04b (patch)
treed9751d7a7cd09ba44f544e4cfb68d04bf73374a0
parent101fc7aaf11a826c735c83358b92b32e4547ef7c (diff)
downloadperl-app-clerk-e138a82f29c53dd36458c7f8ffc7c63c1f8fb04b.tar.gz
perl-app-clerk-e138a82f29c53dd36458c7f8ffc7c63c1f8fb04b.tar.xz
small change to load rated album
-rw-r--r--clerk4
1 files changed, 2 insertions, 2 deletions
diff --git a/clerk b/clerk
index a9b7173..de3b733 100644
--- a/clerk
+++ b/clerk
@@ -797,12 +797,12 @@ loadRatedAlbums () {
ratingPrompt
elif [[ "$menu" == "Replace All" ]]; then
mpc clear
- for albums in "$(sqlite3 ratings.db "select directory from albums where rating >= "$rating";")"; do
+ for albums in "$(sqlite3 ratings.db "select directory from albums where rating = "$rating";")"; do
echo "$albums"
done | mpc add
mpc play
elif [ "$menu" = "Add All" ]; then
- for albums in "$(sqlite3 ratings.db "select directory from albums where rating >= "$rating";")"; do
+ for albums in "$(sqlite3 ratings.db "select directory from albums where rating = "$rating";")"; do
echo "$albums"
done | mpc add
else mpc findadd artist "$artist" album "$album" date "$date"