/mb

musicbrainz music library scripts

Primary LanguagePython

mb

Tools for managing a music library with files that are tagged (associated with) MusicBrainz (mb) resources. These were developed in/for a Fedora Linux environment. Your mileage may vary elsewhere.

Deployment

Git this repository as appropriate. For examples,

git clone https://github.com/rtyle/mb.git
git clone git@github.com:rtyle/mb.git

Customize for the MusicBrainz user, as file comments suggest.

cd mb
cp user.py{_,}
vim user.py

Dependencies

sudo dnf install python3-musicbrainzngs
sudo dnf install python3-mutagen

Tools

collectiondiff

Used to report differences between a collection of files and a MusicBrainz collection of releases. See built-in help.

./collectiondiff --help

fixsidecar

Fix sidecar relationships by matching file stems and renaming them. See built-in help.

./fixsidecar --help

lsmb

List details of each MusicBrainz release identified on stdin. See built-in help.

./lsmb --help

tags

Apply tags from rules in files along the path to targets identified on stdin. See built-in help.

./tags --help