summaryrefslogtreecommitdiffstats
path: root/clerk
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-09-01 01:21:15 +0200
committerRasmus Steinke <rasi@xssn.at>2015-09-01 01:21:15 +0200
commitee86d6737c3ca011d576826bf12adc85a3940488 (patch)
tree8b98afd33a2dba247101bd9e4a61f129637ba228 /clerk
parent9bfd3a9d5f2438bd29fb3590150810b3e3d8dd75 (diff)
downloadperl-app-clerk-ee86d6737c3ca011d576826bf12adc85a3940488.tar.gz
perl-app-clerk-ee86d6737c3ca011d576826bf12adc85a3940488.tar.xz
don't cut album names in latest additions
Diffstat (limited to 'clerk')
-rwxr-xr-xclerk3
1 files changed, 2 insertions, 1 deletions
diff --git a/clerk b/clerk
index 5fb4a6b..e1d17fb 100755
--- a/clerk
+++ b/clerk
@@ -82,7 +82,8 @@ updateCache () {
| sort -nr \
| awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}' \
| awk -F ' — ' '{ print $1 "\t" $2 " — " $3 }' \
- | sed 's,^\([^\t]*\t[^\t]\{40\}\)[^\t]*,\1,' | column -o $'\t' -s $'\t' -t | uniq > $HOME/.config/clerk/latest.cache
+ | column -o $'\t' -s $'\t' -t > $HOME/.config/clerk/latest.cache
+# | sed 's,^\([^\t]*\t[^\t]\{40\}\)[^\t]*,\1,' | column -o $'\t' -s $'\t' -t | uniq > $HOME/.config/clerk/latest.cache
mpc --format '[%albumartist%|%artist%]\t(%date%) — %album%' \
search filename '' \
| grep -v '^ — ' \