summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-10-05 00:34:43 +0200
committerRasmus Steinke <rasi@xssn.at>2014-10-05 00:34:43 +0200
commit5745c9bdb8f0ef262342ca39b685a9e400b158a3 (patch)
treef605b2a5a49245f4c84d66c79a1ed223fbbe86ff
parentebaf96181dd01c7bc0efe082028af6573b638b38 (diff)
downloadperl-app-clerk-5745c9bdb8f0ef262342ca39b685a9e400b158a3.tar.gz
perl-app-clerk-5745c9bdb8f0ef262342ca39b685a9e400b158a3.tar.xz
small album rating fix
-rwxr-xr-xclerk8
1 files changed, 4 insertions, 4 deletions
diff --git a/clerk b/clerk
index dc63451..c000156 100755
--- a/clerk
+++ b/clerk
@@ -160,7 +160,7 @@ updateDB () {
sqlite3 ../ratings.db < /usr/share/doc/clerk/create_rating.sql
fi
for line in *.ratings; do
- albumartist=$(grep "^albumartist=" "$line" | cut -d '=' -f2-)
+ artist=$(grep "^artist=" "$line" | cut -d '=' -f2-)
date=$(grep "^date=" "$line" | cut -d '=' -f2-)
album=$(grep "^album=" "$line" | cut -d '=' -f2-)
rating_split=$(grep "album_rating=" "$line" | cut -d "=" -f2)
@@ -602,11 +602,11 @@ escapeSql() {
rateAlbum () {
if [[ "$mpd_artist" == "albumartist" ]]; then
- albumartist="$(mpc current -f %albumartist%)"
+ artist="$(mpc current -f %albumartist%)"
elif [[ "$mpd_artist" == "artist" ]]; then
- albumartist="$(mpc current -f %artist%)"
+ artist="$(mpc current -f %artist%)"
fi
- albumartist="$(mpc current -f %artist%)"
+ artist="$(mpc current -f %artist%)"
album="$(mpc current -f %album%)"
date="$(mpc current -f %date%)"
rating="$(seq $maxratings | dmenu_t -p "Select Rating: > ")"