diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-25 01:04:12 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-25 01:04:12 +0200 |
commit | 7e72a29491bd93767a38ab7d3cc1ecb5d4e6c9c0 (patch) | |
tree | 97a726fe730dd15a8513e86c1f0be82e5a4dbf33 | |
parent | 8d386839459338892400c19561ac1d50343f5433 (diff) | |
download | perl-app-clerk-7e72a29491bd93767a38ab7d3cc1ecb5d4e6c9c0.tar.gz perl-app-clerk-7e72a29491bd93767a38ab7d3cc1ecb5d4e6c9c0.tar.xz |
Fixed equals
-rw-r--r-- | clerk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -744,7 +744,7 @@ rateTrack () { loadRatedAlbums () { cd "$HOME/.config/clerk" ratings="$(seq $maxratings | dmenu_t -p "Rating > ")" - album=$(echo -e ".separator \" $seperator \"\nselect artist, album, date from albums where rating > "$ratings";" | sqlite3 ratings.db) + album=$(echo -e ".separator \" $seperator \"\nselect artist, album, date from albums where rating >= "$ratings";" | sqlite3 ratings.db) menu=$(echo -e "Add All\nReplace All\n---\n$(echo "$album")" | rofi -dmenu -p "Select Album > ") artist=$(echo "$menu" | awk -F " $seperator " '{ print $1 }') album=$(echo "$menu" | awk -F " $seperator " '{ print $2 }') @@ -752,12 +752,12 @@ loadRatedAlbums () { if [[ "$menu" == "" ]]; then ratingPrompt; elif [[ "$menu" == "Replace All" ]]; then mpc clear - for albums in "$(sqlite3 ratings.db "select directory from albums where rating > "$ratings";")"; do + for albums in "$(sqlite3 ratings.db "select directory from albums where rating >= "$ratings";")"; 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 > "$ratings";")"; do + for albums in "$(sqlite3 ratings.db "select directory from albums where rating >= "$ratings";")"; do echo "$albums" done | mpc add else mpc findadd artist "$artist" album "$album" date "$date" |