diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-01-27 18:45:07 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-01-27 18:45:07 +0100 |
| commit | 7c838a827d6bfbef60274e474d398181a394798d (patch) | |
| tree | 82538243039c255a7495a19f9d5afdbb1ff60bc3 /pkgs/by-name | |
| parent | pkgs/lf-make-map: Don't assume `String::len` returns number of chars (diff) | |
| download | nixos-config-7c838a827d6bfbef60274e474d398181a394798d.zip | |
pkgs/mpp-lyrics: Account for different name for lyrics key in mp3 files
Diffstat (limited to 'pkgs/by-name')
| -rwxr-xr-x | pkgs/by-name/mp/mpp-lyrics/mpp-lyrics.sh | 2 |
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 |
