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, writing a plugin is easy if you know a little Python.
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 config.yaml file, like so:
plugins: 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
Each plugin has its own set of options that can be defined in a section bearing its name:
plugins: inline convert web
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,
pip install beets[fetchart,lyrics,lastgenre]
Using Metadata Source Plugins#
Some plugins provide sources for metadata in addition to MusicBrainz. These plugins share the following configuration option:
source_weight: Penalty applied to matches during import. Set to 0.0 to disable. Default:
For example, to equally consider matches from Discogs and MusicBrainz add the following to your configuration:
Use acoustic fingerprinting to identify audio files with missing or incorrect metadata.
Search for releases in the Discogs database.
Search for releases in the Spotify database.
Search for releases in the Deezer database.
Guess metadata for untagged tracks from their filenames.
Analyse audio with the streaming_extractor_music program and submit the metadata to an AcousticBrainz server
Fetch various AcousticBrainz metadata
Use Librosa to calculate the BPM from the audio.
Measure tempo using keystrokes.
Fetch updated metadata from Beatport.
Edit metadata from a text editor.
Embed album art images into files’ metadata.
Fetch album cover art from various sources.
Move “featured” artists from the artist field to the title field.
Use the KeyFinder program to detect the musical key from the audio.
Use file modification times for guessing the value for the added field in the database.
Fetch genres based on Last.fm tags.
Collect play counts from Last.fm.
Automatically fetch song lyrics.
Fetch updated metadata from MusicBrainz.
Fetch metadata from local or remote sources
Connect to MPD and update the beets library with play statistics (last_played, play_count, skip_count, rating).
Fetch work titles and works they are part of.
Calculate volume normalization for players that support it.
Clean extraneous metadata from music files.
Nullify fields by pattern or unconditionally.
Format album type in path formats.
Group your files into bucket directories that cover different field values ranges.
Use Python snippets to customize path format strings.
Substitute values in path formats.
Substitute field values for items matching a query.
As an alternative to rewrite, use this plugin. The main difference between them is that this plugin never modifies the files metadata.
Move patterns in path formats (i.e., move “a” and “the” to the end).
A server implementation of the AURA specification.
Check audio file integrity.
Automatically notifies Emby whenever the beets library changes.
Adds Fish shell tab autocompletion to
Keep track of imported files via
.m3uplaylist file(s) or symlinks.
Import libraries from friends and get albums from them via ipfs.
Automatically notifies Kodi whenever the beets library changes.
Automatically notifies MPD whenever the beets library changes.
Play beets queries in your music player.
Use M3U playlists to query the beets library.
Automatically notifies Plex whenever the beets library changes.
Generate smart playlists based on beets queries.
Automatically notifies Sonos whenever the beets library changes.
Get thumbnails with the cover art on your album folders.
Automatically notifies Subsonic whenever the beets library changes.
Search albums and tracks with bare ASCII string matching.
Transcode music and embed album art while exporting to a different directory.
List duplicate tracks or albums.
Export data from queries to a format.
Automatically skip files during the import process based on regular expressions.
Search albums and tracks with fuzzy string matching.
Run a command when an event is emitted by beets.
Automatically skip albums and tracks during the import process.
Print music files’ tags to the console.
Load SQLite extensions.
Maintain your MusicBrainz collection list.
Print an album’s tracks in a MusicBrainz-friendly format.
List missing tracks.
A music streaming server + webapp that can be used alongside beets.
Randomly choose albums and tracks from your library.
Create Spotify playlists from the Beets library.
Declare types for flexible attributes.
An experimental Web-based GUI for beets.
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.pathto developers). This just means the plugin has to be installed on your system (e.g., with a
setup.pyscript or a command like
pluginpathconfig variable to point to the directory containing the plugin. (See Configuration.)
Once the plugin is installed, enable it by placing its name on the
line in your config file.
Here are a few of the plugins written by the beets community:
Manages external files.
Adds Amazon.com as a tagger data source.
Fetches the artist’s country of origin from MusicBrainz.
Automates repetitive tasks to keep your library in order.
Adds Audible as a tagger data source and provides other features for managing audiobook collections.
Lets you scan or enter barcodes for physical media to search for their metadata.
Enables bandcamp.com autotagger with a fairly extensive amount of metadata.
Is server implementation of the SubSonic API specification, allowing you to stream your music on a multitude of clients.
Analyses songs and calculates their tempo (BPM).
Automatically checksums your files to detect corruption.
- A cmus plugin
Integrates with the cmus console music player.
Helps bring non-music files along during import.
Gives you the full picture of a single attribute of your library items.
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.
Has two plugins:
Lets you check for new albums from artists you like.
Is a FUSE filesystem for browsing the music in your beets library. (Might be out of date.)
Generates playlists to go with your running sessions.
Uploads tracks to the iBroadcast cloud service.
Lets you perform regex replacements on incoming metadata.
Adds JioSaavn.com as a tagger data source.
Finds versions of indexed releases with more tracks, like deluxe and anniversary editions.
Generates a montage of a mosaic from cover art.
Plugins to interface with MPD. Comes with
mpd_tracker(track play/skip counts from MPD) and
mpd_dj(auto-add songs to your queue.)
Adds and removes directories from the incremental import skip list.
Augments MusicBrainz queries with locally-sourced data to improve autotagger results.
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.
Generate playlists from the setlists of a given artist.
Can compute lots of counts and statistics about your music library.
Lets you use keywords to tag and organize your music.
Fetches genres from various music sites.
Extracts low- and high-level musical information from your songs.
Downloads audio from youtube-dl sources and import into beets.
Download and import your liked songs from YouTube into beets.
Attempts to fix all missing
Adds YouTube Music as a tagger data source.