diff options
author | Rasmus Steinke <rasi@xssn.at> | 2014-10-05 00:34:43 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2014-10-05 00:34:43 +0200 |
commit | 5745c9bdb8f0ef262342ca39b685a9e400b158a3 (patch) | |
tree | f605b2a5a49245f4c84d66c79a1ed223fbbe86ff | |
parent | ebaf96181dd01c7bc0efe082028af6573b638b38 (diff) | |
download | perl-app-clerk-5745c9bdb8f0ef262342ca39b685a9e400b158a3.tar.gz perl-app-clerk-5745c9bdb8f0ef262342ca39b685a9e400b158a3.tar.xz |
small album rating fix
-rwxr-xr-x | clerk | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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: > ")" |