| 1 |
Info Plugin |
| 2 |
=========== |
| 3 |
|
| 4 |
The ``info`` plugin provides a command that dumps the current tag values for any |
| 5 |
file format supported by beets. It works like a supercharged version of mp3info_ |
| 6 |
or id3v2_. |
| 7 |
|
| 8 |
Enable the ``info`` plugin in your configuration (see :ref:`using-plugins`) and |
| 9 |
then type: |
| 10 |
|
| 11 |
:: |
| 12 |
|
| 13 |
$ beet info /path/to/music.flac |
| 14 |
|
| 15 |
and the plugin will enumerate all the tags in the specified file. It also |
| 16 |
accepts multiple filenames in a single command-line. |
| 17 |
|
| 18 |
You can also enter a :doc:`query </reference/query>` to inspect music from your |
| 19 |
library: |
| 20 |
|
| 21 |
:: |
| 22 |
|
| 23 |
$ beet info beatles |
| 24 |
|
| 25 |
If you just want to see specific properties you can use the ``--include-keys`` |
| 26 |
option to filter them. The argument is a comma-separated list of field names. |
| 27 |
For example: |
| 28 |
|
| 29 |
:: |
| 30 |
|
| 31 |
$ beet info -i 'title,mb_artistid' beatles |
| 32 |
|
| 33 |
Will only show the ``title`` and ``mb_artistid`` properties. You can add the |
| 34 |
``-i`` option multiple times to the command line. |
| 35 |
|
| 36 |
Additional command-line options include: |
| 37 |
|
| 38 |
- ``--library`` or ``-l``: Show data from the library database instead of the |
| 39 |
files' tags. |
| 40 |
- ``--album`` or ``-a``: Show data from albums instead of tracks (implies |
| 41 |
``--library``). |
| 42 |
- ``--summarize`` or ``-s``: Merge all the information from multiple files into |
| 43 |
a single list of values. If the tags differ across the files, print |
| 44 |
``[various]``. |
| 45 |
- ``--format`` or ``-f``: Specify a specific format with which to print every |
| 46 |
item. This uses the same template syntax as beets’ :doc:`path formats |
| 47 |
</reference/pathformat>`. |
| 48 |
- ``--keys-only`` or ``-k``: Show the name of the tags without the values. |
| 49 |
|
| 50 |
.. _id3v2: https://sourceforge.net/projects/id3v2/ |
| 51 |
|
| 52 |
.. _mp3info: https://www.ibiblio.org/mp3info/ |