| 1 |
AcousticBrainz Submit Plugin |
| 2 |
============================ |
| 3 |
|
| 4 |
The ``absubmit`` plugin lets you submit acoustic analysis results to an |
| 5 |
AcousticBrainz_ server. This plugin is now deprecated since the AcousicBrainz |
| 6 |
project has been shut down. |
| 7 |
|
| 8 |
As an alternative the beets-xtractor_ plugin can be used. |
| 9 |
|
| 10 |
Warning |
| 11 |
------- |
| 12 |
|
| 13 |
The AcousticBrainz project has shut down. To use this plugin you must set the |
| 14 |
``base_url`` configuration option to a server offering the AcousticBrainz API. |
| 15 |
|
| 16 |
Installation |
| 17 |
------------ |
| 18 |
|
| 19 |
The ``absubmit`` plugin requires the streaming_extractor_music_ program to run. |
| 20 |
Its source can be found on GitHub_, and while it is possible to compile the |
| 21 |
extractor from source, AcousticBrainz would prefer if you used their binary (see |
| 22 |
the AcousticBrainz FAQ_). |
| 23 |
|
| 24 |
Then, install ``beets`` with ``absubmit`` extra |
| 25 |
|
| 26 |
pip install "beets[absubmit]" |
| 27 |
|
| 28 |
Lastly, enable the plugin in your configuration (see :ref:`using-plugins`). |
| 29 |
|
| 30 |
Submitting Data |
| 31 |
--------------- |
| 32 |
|
| 33 |
To run the analysis program and upload its results, type: |
| 34 |
|
| 35 |
:: |
| 36 |
|
| 37 |
beet absubmit [-f] [-d] [QUERY] |
| 38 |
|
| 39 |
By default, the command will only look for AcousticBrainz data when the tracks |
| 40 |
don't already have it; the ``-f`` or ``--force`` switch makes it refetch data |
| 41 |
even when it already exists. You can use the ``-d`` or ``--dry`` switch to check |
| 42 |
which files will be analyzed, before you start a longer period of processing. |
| 43 |
|
| 44 |
The plugin works on music with a MusicBrainz track ID attached. The plugin will |
| 45 |
also skip music that the analysis tool doesn't support. |
| 46 |
streaming_extractor_music_ currently supports files with the extensions ``mp3``, |
| 47 |
``ogg``, ``oga``, ``flac``, ``mp4``, ``m4a``, ``m4r``, ``m4b``, ``m4p``, |
| 48 |
``aac``, ``wma``, ``asf``, ``mpc``, ``wv``, ``spx``, ``tta``, ``3g2``, ``aif``, |
| 49 |
``aiff`` and ``ape``. |
| 50 |
|
| 51 |
Configuration |
| 52 |
------------- |
| 53 |
|
| 54 |
To configure the plugin, make a ``absubmit:`` section in your configuration |
| 55 |
file. The available options are: |
| 56 |
|
| 57 |
- **auto**: Analyze every file on import. Otherwise, you need to use the ``beet |
| 58 |
absubmit`` command explicitly. Default: ``no`` |
| 59 |
- **extractor**: The absolute path to the streaming_extractor_music_ binary. |
| 60 |
Default: search for the program in your ``$PATH`` |
| 61 |
- **force**: Analyze items and submit of AcousticBrainz data even for tracks |
| 62 |
that already have it. Default: ``no``. |
| 63 |
- **pretend**: Do not analyze and submit of AcousticBrainz data but print out |
| 64 |
the items which would be processed. Default: ``no``. |
| 65 |
- **base_url**: The base URL of the AcousticBrainz server. The plugin has no |
| 66 |
function if this option is not set. Default: None |
| 67 |
|
| 68 |
.. _acousticbrainz: https://acousticbrainz.org |
| 69 |
|
| 70 |
.. _beets-xtractor: https://github.com/adamjakab/BeetsPluginXtractor |
| 71 |
|
| 72 |
.. _faq: https://acousticbrainz.org/faq |
| 73 |
|
| 74 |
.. _github: https://github.com/MTG/essentia |
| 75 |
|
| 76 |
.. _pip: https://pip.pypa.io |
| 77 |
|
| 78 |
.. _requests: https://requests.readthedocs.io/en/latest/ |
| 79 |
|
| 80 |
.. _streaming_extractor_music: https://essentia.upf.edu/ |