| 1 |
AlbumTypes Plugin |
| 2 |
================= |
| 3 |
|
| 4 |
The ``albumtypes`` plugin adds the ability to format and output album types, |
| 5 |
such as "Album", "EP", "Single", etc. For the list of available album types, see |
| 6 |
the `MusicBrainz documentation`_. |
| 7 |
|
| 8 |
To use the ``albumtypes`` plugin, enable it in your configuration (see |
| 9 |
:ref:`using-plugins`). The plugin defines a new field ``$atypes``, which you can |
| 10 |
use in your path formats or elsewhere. |
| 11 |
|
| 12 |
.. _musicbrainz documentation: https://musicbrainz.org/doc/Release_Group/Type |
| 13 |
|
| 14 |
A bug introduced in beets 1.6.0 could have possibly imported broken data into |
| 15 |
the ``albumtypes`` library field. Please follow the instructions `described here |
| 16 |
<https://github.com/beetbox/beets/pull/4582#issuecomment-1445023493>`_ for a |
| 17 |
sanity check and potential fix. :bug:`4528` |
| 18 |
|
| 19 |
Configuration |
| 20 |
------------- |
| 21 |
|
| 22 |
To configure the plugin, make a ``albumtypes:`` section in your configuration |
| 23 |
file. The available options are: |
| 24 |
|
| 25 |
- **types**: An ordered list of album type to format mappings. The order of the |
| 26 |
mappings determines their order in the output. If a mapping is missing or |
| 27 |
blank, it will not be in the output. |
| 28 |
- **ignore_va**: A list of types that should not be output for Various Artists |
| 29 |
albums. Useful for not adding redundant information - various artist albums |
| 30 |
are often compilations. |
| 31 |
- **bracket**: Defines the brackets to enclose each album type in the output. |
| 32 |
|
| 33 |
The default configuration looks like this: |
| 34 |
|
| 35 |
:: |
| 36 |
|
| 37 |
albumtypes: |
| 38 |
types: |
| 39 |
- ep: 'EP' |
| 40 |
- single: 'Single' |
| 41 |
- soundtrack: 'OST' |
| 42 |
- live: 'Live' |
| 43 |
- compilation: 'Anthology' |
| 44 |
- remix: 'Remix' |
| 45 |
ignore_va: compilation |
| 46 |
bracket: '[]' |
| 47 |
|
| 48 |
Examples |
| 49 |
-------- |
| 50 |
|
| 51 |
With path formats configured like: |
| 52 |
|
| 53 |
:: |
| 54 |
|
| 55 |
paths: |
| 56 |
default: $albumartist/[$year]$atypes $album/... |
| 57 |
albumtype:soundtrack: Various Artists/$album [$year]$atypes/... |
| 58 |
comp: Various Artists/$album [$year]$atypes/... |
| 59 |
|
| 60 |
The default plugin configuration generates paths that look like this, for |
| 61 |
example: |
| 62 |
|
| 63 |
:: |
| 64 |
|
| 65 |
Aphex Twin/[1993][EP][Remix] On Remixes |
| 66 |
Pink Floyd/[1995][Live] p·u·l·s·e |
| 67 |
Various Artists/20th Century Lullabies [1999] |
| 68 |
Various Artists/Ocean's Eleven [2001][OST] |