Shorten huge playlist URLs

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-02-28 15:16:24 +01:00
parent 32ab6875ff
commit 851ac04b39
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -6,7 +6,7 @@ set -euo pipefail
exit
}
title=$(mpc | head -n1 | tr -cd "[:print:]")
title=$(mpc | head -n1 | tr -cd "[:print:]" | cut -c 1-75)
state=$(mpc | grep '^\[' | sed -E 's/^\[(.+)\].*/\1/')
case ${state} in