summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-09-01 04:43:20 +0200
committerRasmus Steinke <rasi@xssn.at>2015-09-01 04:43:20 +0200
commit6307a33695a42a49c453ad035b1716f2df07eddb (patch)
tree9493a21df443b681917298b16929ca0a57126695
parenta598f8f2efa61d8d36c66546253ffade495096af (diff)
downloadperl-app-clerk-6307a33695a42a49c453ad035b1716f2df07eddb.tar.gz
perl-app-clerk-6307a33695a42a49c453ad035b1716f2df07eddb.tar.xz
dont show duplicate albums in latest menu
-rwxr-xr-xclerk2
1 files changed, 1 insertions, 1 deletions
diff --git a/clerk b/clerk
index c191db7..642296a 100755
--- a/clerk
+++ b/clerk
@@ -94,7 +94,7 @@ updateCache () {
| sort -nr \
| awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}' \
| awk -F ' — ' '{ print $1 "\t" $2 " — " $3 }' \
- | column -o $'\t' -s $'\t' -t > $HOME/.config/clerk/latest.cache
+ | column -o $'\t' -s $'\t' -t | uniq > $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 '' \