diff options
-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" |