From 0f2c1f59e263745afc1fee407ba434541ad38e4e Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 5 Oct 2014 11:07:24 +0200 Subject: changed extensions --- clerk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/clerk b/clerk index f566568..8dd30d1 100755 --- a/clerk +++ b/clerk @@ -595,11 +595,11 @@ rateAlbum () { if [[ "$(pwd)" == */"$cd_divider"* ]]; then cd .. fi - rm -f "$(mpc current -f "%$mpd_artist%--%date%--%album%").ratings" - echo "artist=${artist}" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").ratings" - echo "album=${album}" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").ratings" - echo "date=${date}" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").ratings" - echo "albumrating=$rating" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").ratings" + rm -f "$(mpc current -f "%$mpd_artist%--%date%--%album%").albumrating" + echo "artist=${artist}" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").albumrating" + echo "album=${album}" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").albumrating" + echo "date=${date}" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").albumrating" + echo "albumrating=$rating" >> "$(mpc current -f "%$mpd_artist%--%date%--%album%").albumrating" fi fi } @@ -1327,7 +1327,7 @@ elif [[ "$1" == "-rs" ]]; then elif [[ "$1" == "-show" ]]; then currentTag elif [[ "$1" == "-lrated" ]]; then - mpc clear && mpc sticker / find rating | grep -E "rating=3|rating=4|rating=5" | awk -F ':' '{print $1}' | shuf -n $value | mpc add && mpc play + mpc clear && mpc sticker / find rating | grep -E "rating=6|rating=7|rating=8|rating=9|rating=10" | awk -F ':' '{print $1}' | shuf -n $value | mpc add && mpc play elif [[ "$1" == "-library" ]]; then browseArtist elif [[ "$1" == "-update" ]]; then -- cgit v1.2.3-24-g4f1b