diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-08-30 13:50:48 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-08-30 13:50:48 +0200 |
commit | 9282923586e1c9eab966d83409def6002d7cab9d (patch) | |
tree | c4fecec0138e2e1c9017fa8ef6cd1f5d934b4660 | |
parent | 81fd72aa37b9814cce57f844e4d913f13cb62296 (diff) | |
download | perl-app-clerk-9282923586e1c9eab966d83409def6002d7cab9d.tar.gz perl-app-clerk-9282923586e1c9eab966d83409def6002d7cab9d.tar.xz |
added maxrating to notify-send
-rwxr-xr-x | clerk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -720,7 +720,7 @@ rateAlbum () { cp $HOME/.config/clerk/ratings/"$(mpc current -f "%$mpd_artist%--%date%--%album%").ratings" . fi cd $HOME/.config/clerk/ratings - notify-send "clerk" "Rated $(mpc current -f "%$mpd_artist% - %album%") with $rating" + notify-send "clerk" "Rated $(mpc current -f "%$mpd_artist% - %album%") with $rating/$maxratings" sqlite3 ../ratings.db "insert or replace into albums (date, artist, album, rating) values ('$date', '$albumartist', '$album', '$rating')" fi ratingPrompt @@ -772,7 +772,7 @@ rateTrack () { cp $HOME/.config/clerk/ratings/"$(mpc current -f %$mpd_artist%--%date%--%album%).ratings" . fi cd $HOME/.config/clerk/ratings - notify-send "clerk" "Rated $(mpc current -f "%artist% - %title%") with $rating" + notify-send "clerk" "Rated $(mpc current -f "%artist% - %title%") with $rating/$track_maxratings" sqlite3 ../ratings.db "insert or replace into tracks (date, artist, album, title, rating) values ('$date', '$artist', '$album', '$title', '$rating')" ratingPrompt } |