about summary refs log tree commit diff stats
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-01-27 18:45:07 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-01-27 18:45:07 +0100
commit7c838a827d6bfbef60274e474d398181a394798d (patch)
tree82538243039c255a7495a19f9d5afdbb1ff60bc3 /pkgs/by-name
parentpkgs/lf-make-map: Don't assume `String::len` returns number of chars (diff)
downloadnixos-config-7c838a827d6bfbef60274e474d398181a394798d.zip
pkgs/mpp-lyrics: Account for different name for lyrics key in mp3 files
Diffstat (limited to 'pkgs/by-name')
-rwxr-xr-xpkgs/by-name/mp/mpp-lyrics/mpp-lyrics.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/by-name/mp/mpp-lyrics/mpp-lyrics.sh b/pkgs/by-name/mp/mpp-lyrics/mpp-lyrics.sh
index fa1cac49..6c96a9d9 100755
--- a/pkgs/by-name/mp/mpp-lyrics/mpp-lyrics.sh
+++ b/pkgs/by-name/mp/mpp-lyrics/mpp-lyrics.sh
@@ -16,6 +16,6 @@ die() {
 }
 
 cd "$XDG_MUSIC_DIR/beets" || die "No music dir!"
-exiftool "$(mpc --format '%file%' current)" -json | jq '.[0].Lyrics' --raw-output | less
+exiftool "$(mpc --format '%file%' current)" -json | jq '.[0] | if has("Lyrics") then .Lyrics elif has("Lyrics-xxx") then ."Lyrics-xxx" else "<No lyrics key>" end' --raw-output | less
 
 # vim: ft=sh