1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706
|
Plugins
=======
Plugins extend beets' core functionality. They add new commands, fetch
additional data during import, provide new metadata sources, and much more. If
beets by itself doesn't do what you want it to, you may just need to enable a
plugin---or, if you want to do something new, :doc:`writing a plugin
</dev/plugins/index>` is easy if you know a little Python.
.. _using-plugins:
Using Plugins
-------------
To use one of the plugins included with beets (see the rest of this page for a
list), just use the ``plugins`` option in your :doc:`config.yaml
</reference/config>` file:
.. code-block:: sh
plugins: musicbrainz inline convert web
The value for ``plugins`` can be a space-separated list of plugin names or a
YAML list like ``[foo, bar]``. You can see which plugins are currently enabled
by typing ``beet version``.
Each plugin has its own set of options that can be defined in a section bearing
its name:
.. code-block:: yaml
plugins: musicbrainz inline convert web
convert:
auto: true
Some plugins have special dependencies that you'll need to install. The
documentation page for each plugin will list them in the setup instructions. For
some, you can use ``pip``'s "extras" feature to install the dependencies:
.. code-block:: sh
pip install "beets[fetchart,lyrics,lastgenre]"
.. _metadata-source-plugin-configuration:
Using Metadata Source Plugins
-----------------------------
We provide several :ref:`autotagger_extensions` that fetch metadata from online
databases. They share the following configuration options:
.. _data_source_mismatch_penalty:
- **data_source_mismatch_penalty**: Penalty applied when the data source of a
match candidate differs from the original source of your existing tracks. Any
decimal number between 0.0 and 1.0. Default: ``0.5``.
This setting controls how much to penalize matches from different metadata
sources during import. The penalty is applied when beets detects that a match
candidate comes from a different data source than what appears to be the
original source of your music collection.
**Example configurations:**
.. code-block:: yaml
# Prefer MusicBrainz over Discogs when sources don't match
plugins: musicbrainz discogs
musicbrainz:
data_source_mismatch_penalty: 0.3 # Lower penalty = preferred
discogs:
data_source_mismatch_penalty: 0.8 # Higher penalty = less preferred
.. code-block:: yaml
# Do not penalise candidates from Discogs at all
plugins: musicbrainz discogs
musicbrainz:
data_source_mismatch_penalty: 0.5
discogs:
data_source_mismatch_penalty: 0.0
.. code-block:: yaml
# Disable cross-source penalties entirely
plugins: musicbrainz discogs
musicbrainz:
data_source_mismatch_penalty: 0.0
discogs:
data_source_mismatch_penalty: 0.0
.. tip::
The last configuration is equivalent to setting:
.. code-block:: yaml
match:
distance_weights:
data_source: 0.0 # Disable data source matching
- **source_weight**
.. deprecated:: 2.5 Use `data_source_mismatch_penalty`_ instead.
- **search_limit**: Maximum number of search results to consider. Default:
``5``.
.. toctree::
:hidden:
absubmit
acousticbrainz
advancedrewrite
albumtypes
aura
autobpm
badfiles
bareasc
beatport
bpd
bpm
bpsync
bucket
chroma
convert
deezer
discogs
duplicates
edit
embedart
embyupdate
export
fetchart
filefilter
fish
freedesktop
fromfilename
ftintitle
fuzzy
gmusic
hook
ihate
importadded
importfeeds
info
inline
ipfs
keyfinder
kodiupdate
lastgenre
lastimport
limit
listenbrainz
loadext
lyrics
mbcollection
mbsubmit
mbsync
metasync
missing
mpdstats
mpdupdate
musicbrainz
parentwork
permissions
play
playlist
plexupdate
random
replace
replaygain
rewrite
scrub
smartplaylist
sonosupdate
spotify
subsonicplaylist
subsonicupdate
substitute
the
thumbnails
types
unimported
web
zero
.. _autotagger_extensions:
Autotagger Extensions
---------------------
:doc:`chroma <chroma>`
Use acoustic fingerprinting to identify audio files with missing or
incorrect metadata.
:doc:`deezer <deezer>`
Search for releases in the Deezer_ database.
:doc:`discogs <discogs>`
Search for releases in the Discogs_ database.
:doc:`fromfilename <fromfilename>`
Guess metadata for untagged tracks from their filenames.
:doc:`musicbrainz <musicbrainz>`
Search for releases in the MusicBrainz_ database.
:doc:`spotify <spotify>`
Search for releases in the Spotify_ database.
.. _deezer: https://www.deezer.com
.. _discogs: https://www.discogs.com
.. _musicbrainz: https://www.musicbrainz.com
.. _spotify: https://www.spotify.com
Metadata
--------
:doc:`absubmit <absubmit>`
Analyse audio with the streaming_extractor_music_ program and submit the
metadata to an AcousticBrainz server
:doc:`acousticbrainz <acousticbrainz>`
Fetch various AcousticBrainz metadata
:doc:`autobpm <autobpm>`
Use Librosa_ to calculate the BPM from the audio.
:doc:`bpm <bpm>`
Measure tempo using keystrokes.
:doc:`bpsync <bpsync>`
Fetch updated metadata from Beatport.
:doc:`edit <edit>`
Edit metadata from a text editor.
:doc:`embedart <embedart>`
Embed album art images into files' metadata.
:doc:`fetchart <fetchart>`
Fetch album cover art from various sources.
:doc:`ftintitle <ftintitle>`
Move "featured" artists from the artist field to the title field.
:doc:`keyfinder <keyfinder>`
Use the KeyFinder_ program to detect the musical key from the audio.
:doc:`importadded <importadded>`
Use file modification times for guessing the value for the ``added`` field
in the database.
:doc:`lastgenre <lastgenre>`
Fetch genres based on Last.fm tags.
:doc:`lastimport <lastimport>`
Collect play counts from Last.fm.
:doc:`lyrics <lyrics>`
Automatically fetch song lyrics.
:doc:`mbsync <mbsync>`
Fetch updated metadata from MusicBrainz.
:doc:`metasync <metasync>`
Fetch metadata from local or remote sources
:doc:`mpdstats <mpdstats>`
Connect to MPD_ and update the beets library with play statistics
(last_played, play_count, skip_count, rating).
:doc:`parentwork <parentwork>`
Fetch work titles and works they are part of.
:doc:`replaygain <replaygain>`
Calculate volume normalization for players that support it.
:doc:`scrub <scrub>`
Clean extraneous metadata from music files.
:doc:`zero <zero>`
Nullify fields by pattern or unconditionally.
.. _keyfinder: http://www.ibrahimshaath.co.uk/keyfinder/
.. _librosa: https://github.com/librosa/librosa/
.. _streaming_extractor_music: https://acousticbrainz.org/download
Path Formats
------------
:doc:`albumtypes <albumtypes>`
Format album type in path formats.
:doc:`bucket <bucket>`
Group your files into bucket directories that cover different field values
ranges.
:doc:`inline <inline>`
Use Python snippets to customize path format strings.
:doc:`rewrite <rewrite>`
Substitute values in path formats.
:doc:`advancedrewrite <advancedrewrite>`
Substitute field values for items matching a query.
:doc:`substitute <substitute>`
As an alternative to :doc:`rewrite <rewrite>`, use this plugin. The main
difference between them is that this plugin never modifies the files
metadata.
:doc:`the <the>`
Move patterns in path formats (i.e., move "a" and "the" to the end).
Interoperability
----------------
:doc:`aura <aura>`
A server implementation of the AURA_ specification.
:doc:`badfiles <badfiles>`
Check audio file integrity.
:doc:`embyupdate <embyupdate>`
Automatically notifies Emby_ whenever the beets library changes.
:doc:`fish <fish>`
Adds `Fish shell`_ tab autocompletion to ``beet`` commands.
:doc:`importfeeds <importfeeds>`
Keep track of imported files via ``.m3u`` playlist file(s) or symlinks.
:doc:`ipfs <ipfs>`
Import libraries from friends and get albums from them via ipfs.
:doc:`kodiupdate <kodiupdate>`
Automatically notifies Kodi_ whenever the beets library changes.
:doc:`mpdupdate <mpdupdate>`
Automatically notifies MPD_ whenever the beets library changes.
:doc:`play <play>`
Play beets queries in your music player.
:doc:`playlist <playlist>`
Use M3U playlists to query the beets library.
:doc:`plexupdate <plexupdate>`
Automatically notifies Plex_ whenever the beets library changes.
:doc:`smartplaylist <smartplaylist>`
Generate smart playlists based on beets queries.
:doc:`sonosupdate <sonosupdate>`
Automatically notifies Sonos_ whenever the beets library changes.
:doc:`thumbnails <thumbnails>`
Get thumbnails with the cover art on your album folders.
:doc:`subsonicupdate <subsonicupdate>`
Automatically notifies Subsonic_ whenever the beets library changes.
.. _aura: https://auraspec.readthedocs.io
.. _emby: https://emby.media
.. _fish shell: https://fishshell.com/
.. _kodi: https://kodi.tv
.. _plex: https://plex.tv
.. _sonos: https://sonos.com
.. _subsonic: http://www.subsonic.org/
Miscellaneous
-------------
:doc:`bareasc <bareasc>`
Search albums and tracks with bare ASCII string matching.
:doc:`bpd <bpd>`
A music player for your beets library that emulates MPD_ and is compatible
with `MPD clients`_.
:doc:`convert <convert>`
Transcode music and embed album art while exporting to a different
directory.
:doc:`duplicates <duplicates>`
List duplicate tracks or albums.
:doc:`export <export>`
Export data from queries to a format.
:doc:`filefilter <filefilter>`
Automatically skip files during the import process based on regular
expressions.
:doc:`fuzzy <fuzzy>`
Search albums and tracks with fuzzy string matching.
:doc:`hook <hook>`
Run a command when an event is emitted by beets.
:doc:`ihate <ihate>`
Automatically skip albums and tracks during the import process.
:doc:`info <info>`
Print music files' tags to the console.
:doc:`loadext <loadext>`
Load SQLite extensions.
:doc:`mbcollection <mbcollection>`
Maintain your MusicBrainz collection list.
:doc:`mbsubmit <mbsubmit>`
Print an album's tracks in a MusicBrainz-friendly format.
:doc:`missing <missing>`
List missing tracks.
mstream_
A music streaming server + webapp that can be used alongside beets.
:doc:`random <random>`
Randomly choose albums and tracks from your library.
:doc:`spotify <spotify>`
Create Spotify playlists from the Beets library.
:doc:`types <types>`
Declare types for flexible attributes.
:doc:`web <web>`
An experimental Web-based GUI for beets.
.. _mpd: https://www.musicpd.org/
.. _mpd clients: https://mpd.wikia.com/wiki/Clients
.. _mstream: https://github.com/IrosTheBeggar/mStream
.. _other-plugins:
Other Plugins
-------------
In addition to the plugins that come with beets, there are several plugins that
are maintained by the beets community. To use an external plugin, there are two
options for installation:
- Make sure it's in the Python path (known as ``sys.path`` to developers). This
just means the plugin has to be installed on your system (e.g., with a
``setup.py`` script or a command like ``pip`` or ``easy_install``).
- Set the ``pluginpath`` config variable to point to the directory containing
the plugin. (See :doc:`/reference/config`.)
Once the plugin is installed, enable it by placing its name on the ``plugins``
line in your config file.
Here are a few of the plugins written by the beets community:
beets-alternatives_
Manages external files.
beet-amazon_
Adds Amazon.com as a tagger data source.
beets-artistcountry_
Fetches the artist's country of origin from MusicBrainz.
beets-autofix_
Automates repetitive tasks to keep your library in order.
beets-autogenre_
Assigns genres to your library items using the :doc:`lastgenre <lastgenre>`
and beets-xtractor_ plugins as well as additional rules.
beets-audible_
Adds Audible as a tagger data source and provides other features for
managing audiobook collections.
beets-barcode_
Lets you scan or enter barcodes for physical media to search for their
metadata.
beetcamp_
Enables **bandcamp.com** autotagger with a fairly extensive amount of
metadata.
beetstream_
Server implementation of the `Subsonic API`_ specification, serving the
beets library and (:doc:`smartplaylist <smartplaylist>` plugin generated)
M3U playlists, allowing you to stream your music on a multitude of clients.
beets-bpmanalyser_
Analyses songs and calculates their tempo (BPM).
beets-check_
Automatically checksums your files to detect corruption.
`A cmus plugin`_
Integrates with the cmus_ console music player.
beets-copyartifacts_
Helps bring non-music files along during import.
beets-describe_
Gives you the full picture of a single attribute of your library items.
drop2beets_
Automatically imports singles as soon as they are dropped in a folder (using
Linux's ``inotify``). You can also set a sub-folders hierarchy to set
flexible attributes by the way.
dsedivec_
Has two plugins: ``edit`` and ``moveall``.
beets-filetote_
Helps bring non-music extra files, attachments, and artifacts during imports
and CLI file manipulation actions (``beet move``, etc.).
beets-follow_
Lets you check for new albums from artists you like.
beetFs_
Is a FUSE filesystem for browsing the music in your beets library. (Might be
out of date.)
beets-goingrunning_
Generates playlists to go with your running sessions.
beets-ibroadcast_
Uploads tracks to the iBroadcast_ cloud service.
beets-id3extract_
Maps arbitrary ID3 tags to beets custom fields.
beets-importreplace_
Lets you perform regex replacements on incoming metadata.
beets-jiosaavn_
Adds JioSaavn.com as a tagger data source.
beets-more_
Finds versions of indexed releases with more tracks, like deluxe and
anniversary editions.
beets-mosaic_
Generates a montage of a mosaic from cover art.
beets-mpd-utils_
Plugins to interface with MPD_. Comes with ``mpd_tracker`` (track play/skip
counts from MPD) and ``mpd_dj`` (auto-add songs to your queue.)
beets-noimport_
Adds and removes directories from the incremental import skip list.
beets-originquery_
Augments MusicBrainz queries with locally-sourced data to improve autotagger
results.
beets-plexsync_
Allows you to sync your Plex library with your beets library, create smart
playlists in Plex, and import online playlists (from services like Spotify)
into Plex.
beets-setlister_
Generate playlists from the setlists of a given artist.
beet-summarize_
Can compute lots of counts and statistics about your music library.
beets-usertag_
Lets you use keywords to tag and organize your music.
beets-webm3u_
Serves the (:doc:`smartplaylist <smartplaylist>` plugin generated) M3U
playlists via HTTP.
beets-webrouter_
Serves multiple beets webapps (e.g. :doc:`web <web>`, beets-webm3u_,
beetstream_, :doc:`aura <aura>`) using a single command/process/host/port,
each under a different path.
whatlastgenre_
Fetches genres from various music sites.
beets-xtractor_
Extracts low- and high-level musical information from your songs.
beets-ydl_
Downloads audio from youtube-dl sources and import into beets.
beets-ytimport_
Download and import your liked songs from YouTube into beets.
beets-yearfixer_
Attempts to fix all missing ``original_year`` and ``year`` fields.
beets-youtube_
Adds YouTube Music as a tagger data source.
.. _a cmus plugin: https://github.com/coolkehon/beets/blob/master/beetsplug/cmus.py
.. _beet-amazon: https://github.com/jmwatte/beet-amazon
.. _beet-musicbrainz-collection: https://github.com/jeffayle/Beet-MusicBrainz-Collection/
.. _beet-summarize: https://github.com/steven-murray/beet-summarize
.. _beetcamp: https://github.com/snejus/beetcamp
.. _beetfs: https://github.com/jbaiter/beetfs
.. _beets-alternatives: https://github.com/geigerzaehler/beets-alternatives
.. _beets-artistcountry: https://github.com/agrausem/beets-artistcountry
.. _beets-audible: https://github.com/Neurrone/beets-audible
.. _beets-autofix: https://github.com/adamjakab/BeetsPluginAutofix
.. _beets-autogenre: https://github.com/mgoltzsche/beets-autogenre
.. _beets-barcode: https://github.com/8h2a/beets-barcode
.. _beets-bpmanalyser: https://github.com/adamjakab/BeetsPluginBpmAnalyser
.. _beets-check: https://github.com/geigerzaehler/beets-check
.. _beets-copyartifacts: https://github.com/adammillerio/beets-copyartifacts
.. _beets-describe: https://github.com/adamjakab/BeetsPluginDescribe
.. _beets-filetote: https://github.com/gtronset/beets-filetote
.. _beets-follow: https://github.com/nolsto/beets-follow
.. _beets-goingrunning: https://pypi.org/project/beets-goingrunning
.. _beets-ibroadcast: https://github.com/ctrueden/beets-ibroadcast
.. _beets-id3extract: https://github.com/bcotton/beets-id3extract
.. _beets-importreplace: https://github.com/edgars-supe/beets-importreplace
.. _beets-jiosaavn: https://github.com/arsaboo/beets-jiosaavn
.. _beets-more: https://forgejo.sny.sh/sun/beetsplug/src/branch/main/more
.. _beets-mosaic: https://github.com/SusannaMaria/beets-mosaic
.. _beets-mpd-utils: https://github.com/thekakkun/beets-mpd-utils
.. _beets-noimport: https://gitlab.com/tiago.dias/beets-noimport
.. _beets-originquery: https://github.com/x1ppy/beets-originquery
.. _beets-plexsync: https://github.com/arsaboo/beets-plexsync
.. _beets-setlister: https://github.com/tomjaspers/beets-setlister
.. _beets-usertag: https://github.com/igordertigor/beets-usertag
.. _beets-webm3u: https://github.com/mgoltzsche/beets-webm3u
.. _beets-webrouter: https://github.com/mgoltzsche/beets-webrouter
.. _beets-xtractor: https://github.com/adamjakab/BeetsPluginXtractor
.. _beets-ydl: https://github.com/vmassuchetto/beets-ydl
.. _beets-yearfixer: https://github.com/adamjakab/BeetsPluginYearFixer
.. _beets-youtube: https://github.com/arsaboo/beets-youtube
.. _beets-ytimport: https://github.com/mgoltzsche/beets-ytimport
.. _beetstream: https://github.com/BinaryBrain/Beetstream
.. _cmus: http://cmus.sourceforge.net/
.. _drop2beets: https://github.com/martinkirch/drop2beets
.. _dsedivec: https://github.com/dsedivec/beets-plugins
.. _ibroadcast: https://ibroadcast.com/
.. _subsonic api: http://www.subsonic.org/pages/api.jsp
.. _whatlastgenre: https://github.com/YetAnotherNerd/whatlastgenre/tree/master/plugin/beets
|