$ pip install beets
python
import os
import shutil
from beets import config
from beets import library
from beets import importer
yaml
library: /path/to/library/
import:
copy: yes
move: no
write: yes
delete: yes
autotag: yes
plugins: []
match:
strong_rec_thresh: 0.25
medium_rec_thresh: 0.15
rec_max_distance: 0.35
candidate_max_distance: 0.6
strip_feat: no
python
config.configure('/path/to/config.yaml')
python
my_library = library.Library('/path/to/library/')
python
my_library.add('/path/to/audio_file.mp3')
python
i = importer.ImportSession(my_library)
i.run()