summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2014-10-04 10:35:28 +0200
committerRasmus Steinke <rasi@xssn.at>2014-10-04 10:35:28 +0200
commit66794c6ad9241d4ac0ebd160ef2edac30bbee209 (patch)
treead2628c7204073f3ec5a1f7d348058c797fc30fb
parent1c3a0f2df2bb97ee2cce9dfb7d375d13c72819d7 (diff)
downloadperl-app-clerk-66794c6ad9241d4ac0ebd160ef2edac30bbee209.tar.gz
perl-app-clerk-66794c6ad9241d4ac0ebd160ef2edac30bbee209.tar.xz
albumartist fix
-rwxr-xr-xclerk4
1 files changed, 2 insertions, 2 deletions
diff --git a/clerk b/clerk
index 00660fa..267509a 100755
--- a/clerk
+++ b/clerk
@@ -164,7 +164,7 @@ updateDB () {
sqlite3 ../ratings.db < /usr/share/doc/clerk/create_rating.sql
fi
for line in *.ratings; do
- artist=$(grep "^albumartist=" "$line" | cut -d '=' -f2- )
+ albumartist=$(grep "^albumartist=" "$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)
@@ -652,7 +652,7 @@ rateAlbum () {
elif [[ "$mpd_artist" == "artist" ]]; then
albumartist="$(mpc current -f %artist%)"
fi
- artist="$(mpc current -f %artist%)"
+ albumartist="$(mpc current -f %artist%)"
album="$(mpc current -f %album%)"
date="$(mpc current -f %date%)"
rating="$(seq $maxratings | dmenu_t -p "Select Rating: > ")"