pip install beets
beet config -p > ~/.config/beets/config.yaml
beet import /path/to/music
beet update
beet move
beet ls artist:"Artist Name"
python
import beets.library
from beets import config
from beets.ui import input_yn
lib = beets.library.Library(config['library'].get(), config)
config['import'] = {}
config['import']['quiet'] = True
config['import']['autotag'] = True
config['import']['copy'] = False
def add_music(filepath):
item = lib.add(filepath)
if item:
print(f"Added '{item.artist} - {item.title}' to the library.")
else:
print(f"Failed to add '{filepath}' to the library.")
file_path = input("Enter the path to the music file: ")
add_music(file_path)