From d3638ae8fbe02af8f2a1d1e00eaa766dea976f75 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 19 Dec 2023 18:31:49 +0100 Subject: fix(hm/pkgs/src/lyrics): Adapt to new spotdl settings --- hm/soispha/pkgs/scripts/wrappers/lyrics | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'hm/soispha/pkgs/scripts') 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 -- cgit 1.4.1