diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-02-19 14:22:10 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-02-19 14:22:10 +0100 |
| commit | 19a217bf2f0fce4798be67e64f1ce165cf2c5953 (patch) | |
| tree | 6e3f8058846d1e73c65e18f0dc5f027143991c12 /modules/home.legacy | |
| parent | modules/lf/ctpv/prev/message/rfc822: Temporarily avoid `meli` (diff) | |
| download | nixos-config-19a217bf2f0fce4798be67e64f1ce165cf2c5953.zip | |
modules/legacy/beets/plugins/inline: Don't fail on empty `albumartists`
Diffstat (limited to 'modules/home.legacy')
| -rw-r--r-- | modules/home.legacy/conf/beets/plugins/inline/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/home.legacy/conf/beets/plugins/inline/default.nix b/modules/home.legacy/conf/beets/plugins/inline/default.nix index bf476c9f..d4394229 100644 --- a/modules/home.legacy/conf/beets/plugins/inline/default.nix +++ b/modules/home.legacy/conf/beets/plugins/inline/default.nix @@ -11,6 +11,11 @@ programs.beets.settings.item_fields = { primary_artist = # python - ''albumartists[0]''; + '' + try: + albumartists[0] + except IndexError: + artist + ''; }; } |
