diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-25 23:50:52 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-25 23:50:52 +0200 |
commit | e138a82f29c53dd36458c7f8ffc7c63c1f8fb04b (patch) | |
tree | d9751d7a7cd09ba44f544e4cfb68d04bf73374a0 | |
parent | 101fc7aaf11a826c735c83358b92b32e4547ef7c (diff) | |
download | perl-app-clerk-e138a82f29c53dd36458c7f8ffc7c63c1f8fb04b.tar.gz perl-app-clerk-e138a82f29c53dd36458c7f8ffc7c63c1f8fb04b.tar.xz |
small change to load rated album
-rw-r--r-- | clerk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |