about summary refs log tree commit diff stats
path: root/hm/soispha/pkgs/scripts/wrappers
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/pkgs/scripts/wrappers/lyrics7
1 files changed, 1 insertions, 6 deletions
diff --git a/hm/soispha/pkgs/scripts/wrappers/lyrics b/hm/soispha/pkgs/scripts/wrappers/lyrics
index a72eede1..9e019fe2 100755
--- a/hm/soispha/pkgs/scripts/wrappers/lyrics
+++ b/hm/soispha/pkgs/scripts/wrappers/lyrics
@@ -3,14 +3,9 @@
 # shellcheck source=/dev/null
 SHELL_LIBRARY_VERSION="1.9.0" . %SHELL_LIBRARY_PATH
 
-
-out="$(mktmp)"
-
-print " " > "$out"
 (
     cd "$XDG_MUSIC_DIR" || die "No music dir!"
-    mediainfo --Output=JSON "$(mpc --format '%file%' current)" | jq -r '.media.track[0].Lyrics' | sed 's|/|\n|g' >> "$out"
+    exiftool "$(mpc --format '%file%' current)" -json | jq '.[0].Lyrics' -r | less
 )
-less "$out"
 
 # vim: ft=sh