Official Plugins¶
Official plugins are supported by the MoeMusic team and are included as optional extras within Moe.
Musicbrainz¶
This is a plugin for Moe utilizing the musicbrainz metadata source and provides the following features:
Musicbrainz as an import souce.
Update musicbrainz collections automatically on import or manually.
Various API functions.
Installation¶
Install via pipx
$ pipx install moe[musicbrainz]
Configuration¶
Add musicbrainz to the enabled_plugins configuration option.
This plugin has the following configuration options:
usernameMusicbrainz username.
passwordMusicbrainz password.
search_limit = 5Maximum number of search results to return when searching for candidate albums from MusicBrainz. Must be at least 1. Defaults to 5.
Collections¶
The following options involve auto updating a specific collection on musicbrainz, and should be specified under a musicbrainz.collection block as shown:
[musicbrainz.collection]
collection_id = "123"
Important
Utilizing any of the collections functionality requires setting your musicbrainz username and password as described above.
collection_idMusicbrainz collection to automatically update.
auto_add = falseWhether to automatically add new releases in the library to the collection defined in
collection_id.auto_remove = falseWhether to automatically remove releases from
collection_idwhen removed from the library.
Custom Fields¶
This plugin adds the following custom fields:
Track Fields¶
mb_track_id- musicbrainz track id
Album Fields¶
mb_album_id- musicbrainz album aka release id
Command-line Interface¶
This plugin adds the following commands:
mbcol¶
Used to sync a musicbrainz collection with musicbrainz releases in the library. The collection synced is the one specified under collection_id in the user config.
moe mbcol [-h] [-a | -e] [--add | --remove] query
By default, the musicbrainz collection will be set to the releases found in the queried items. If tracks or extras are queried, their associated album releases will be synced with the collection.
Positional Arguments¶
queryQuery your library for items to sync your collection with. See the Moe query docs for more info.
Optional Arguments¶
-h, --helpDisplay the help message.
-a, --albumQuery for matching albums instead of tracks.
-e, --extraQuery for matching extras instead of tracks.
--addAdd releases to the collection.
--removeRemove releases from the collection.
API¶
moe.plugins.musicbrainz
Transcode¶
This is a plugin for Moe that provides functionality for transcoding music.
Currently only flac -> mp3 [v0, v2, 320] is supported.
Installation¶
-
Important
Ensure
ffmpegis in your OS’s path environment variable.
Configuration¶
Add transcode to the enabled_plugins configuration option.
This plugin has the following configuration options:
transcode_path = {library_path}/transcodeThe default path for transcoded files.
API¶
transcode
Transcode plugin.
- transcode(item: I, to_format: Literal['mp3 v2', 'mp3 v0', 'mp3 320'], out_path: Path | None = None, *, overwrite: bool = False) I¶
Transcodes a track or album to a specific format.
- Parameters:
item – Track or Album to transcode. The track, or tracks contained in the album will only be transcoded if they are flacs.
to_format – Format to transcode to.
out_path – Path of the transcoded item. This defaults to the formatted path per the configuration relative to the
transcode_pathsetting.overwrite – Whether or not to overwrite existing files.
- Returns:
The transcoded track or album.
- Raises:
ValueError –
itemcontains a non-supported audio format.