Debian Codegraph @

docs/plugins/index.rst

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