A scrappy library that tags and converts audio files to ALAC m4a. Written for those that use the macOS music app.
-
Clone the repository
git clone https://github.com/pynathanthomas/audioconvert.git
-
Install dependencies
cd audioconvert; pip3 install -r requirements.txt
-
Open
convert_dir.py
and replacedir
andauto_folder
with your path to Automatically Add to Music.localized. -
Now you can run
python3 ~/audioconvert/convert_dir.py
to convert and move all the tracks.
-
Now the program will split cue files, convert everything to ALAC and sort it out in the Music app!
This is the machinery behind processing .cue files. It assumes there is artwork in the parent directory and loads it.
from cueparser import Cue
my_cue = Cue('/path/to/cue/file.cue')
# to change attributes, use like a dict
my_cue['artist'] = 'New Artist'
my_cue['tracklist'][0]['name'] = 'The first track'
# this will split the large files and tag them
# it converts to ALAC by default
my_cue.split()