# Output format with missing plugin

**URL:** <https://discourse.beets.io/t/output-format-with-missing-plugin/1473>\
**Category:** Help\
**Created:** [August 24, 2020, 6:32am UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473 "2020-08-24T06:32:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmeckx](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@schmeckx](https://discourse.beets.io/u/schmeckx)\
**Post date:** [August 24, 2020, 6:32am UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/1 "2020-08-24T06:32:39Z")

</div>

Hi!

In my config file the output format with the missing plugin is defined as:

```
missing:
format: '$albumartist - $album: $track/$tracktotal $title'

```

But the output looks like the default:

```
albumartist - album - title

```

When defining the format with the command, the output is correct:

```
beet missing -f '$albumartist - $album: $track/$tracktotal $title'

```

How can I solve this?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [August 24, 2020, 11:17am UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/2 "2020-08-24T11:17:16Z")

</div>

Hi! That’s odd—can you paste the entire output of `beet config` to see what’s going on there?

---

<div class="post-metadata">

**Author:** ![schmeckx](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@schmeckx](https://discourse.beets.io/u/schmeckx)\
**Post date:** [August 24, 2020, 11:36am UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/3 "2020-08-24T11:36:53Z")

</div>

Here it is:

```auto
directory: /data/mp3/beets
library: ~/.beets/musiclibrary.db
per_disc_numbering: yes
original_date: yes

import:
    languages: en
item_fields:
    multidisc: 1 if disctotal > 1 else 0
    singledigitdisc: '''{:1n}''.format(disc)'

paths:
    default: '$data_source/$albumartist: ($year) $album%aunique{,country}/%if{$multidisc,$singledigitdisc}$track $title'
    comp: '$data_source/Various Artists: $album/%if{$multidisc,$singledigitdisc}$track $artist - $title'

replace:
    '[\\/]': _
    '[\x00-\x1f]': _
    ^\.: _
    \s+$: ''
    ^\s+: ''
    ^-: _

plugins: discogs chroma missing mbsync inline info importadded
chroma:
    auto: no
missing:
    format: '$albumartist - $album: $track/$tracktotal $title'
    count: no
    total: no
    album: no
importadded:
    preserve_mtimes: yes
    preserve_write_mtimes: yes
discogs:
    apikey: REDACTED
    apisecret: REDACTED
    tokenfile: discogs_token.json
    source_weight: 0.5
    user_token: REDACTED
pathfields: {}
album_fields: {}

```

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [August 24, 2020, 11:11pm UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/4 "2020-08-24T23:11:05Z")

</div>

Aha; it looks like it may be a docs problem: the config seems to have changed to use `format_album` and `format_item` separately, without updating the docs. Could you give that a shot and see if it works?

---

<div class="post-metadata">

**Author:** ![schmeckx](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@schmeckx](https://discourse.beets.io/u/schmeckx)\
**Post date:** [August 25, 2020, 4:22am UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/5 "2020-08-25T04:22:14Z")

</div>

I’ve changed it, but the output stays the same.

```auto
missing:
    format_item: '$albumartist - $album: $track/$tracktotal $title'
    format_album: '$albumartist: ($year) $album'

```

Furthermore, when searching for missing albums with `beet missing -a` even the option `-f` doesn’t show any effect.

EDIT:  
When defining `format_item` in the global options, the output format of `beet missing` is correct.

Whereas defining `format_album` globally still ignores the custom format.

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [August 25, 2020, 3:56pm UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/6 "2020-08-25T15:56:24Z")

</div>

Agh, sorry for the misleading discussion here! I looked again and it seems like the plugin doesn’t use its own format configuration _at all_ anymore. It just uses the global options. This change was introduced (long ago) here:

> <https://github.com/beetbox/beets/commit/650305c9a184320df1bcfe6ae5e60d4f5a7ad283>

And corrected here:

> <https://github.com/beetbox/beets/commit/13d65f9c37b4595a129a5f3163ca779bd164973b>

The change was an effort to centralize common configuration options. In any case, the docs are wrong and that option should not be listed.

---

<div class="post-metadata">

**Author:** ![schmeckx](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@schmeckx](https://discourse.beets.io/u/schmeckx)\
**Post date:** [August 25, 2020, 8:34pm UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/7 "2020-08-25T20:34:20Z")

</div>

OK, thanks!

As written above, `format_item` in the global options now works with `beet missing`.

But `format_album` does not (while it does with `beet list -a`). Why is that so?

---

<div class="post-metadata">

**Author:** ![adrian](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.beets.io/adrian/32/4_2.png) [@adrian](https://discourse.beets.io/u/adrian)\
**Post date:** [August 25, 2020, 10:19pm UTC](https://discourse.beets.io/t/output-format-with-missing-plugin/1473/8 "2020-08-25T22:19:33Z")

</div>

Hmm, that I’m not sure about. Could be a bug?
