diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-10-05 11:07:24 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-10-05 11:07:24 +0200 |
commit | 0f2c1f59e263745afc1fee407ba434541ad38e4e (patch) | |
tree | 72503e0a300767c84d51263bd1136d9593d96192 | |
parent | 2a351364ea1234e85629f74cfc24f82e4457d667 (diff) | |
download | perl-app-clerk-0f2c1f59e263745afc1fee407ba434541ad38e4e.tar.gz perl-app-clerk-0f2c1f59e263745afc1fee407ba434541ad38e4e.tar.xz |
changed extensions
-rwxr-xr-x | clerk | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |