install following dependencies
sudo apt install \
id3v2 \
flac \
cdparanoia \
imagemagick \
glyrc
npm ci && npm run build
Music Utils provides 5 scripts:
- cdrip.sh
- cover.photo.sh
- tag.album.sh
- tag.tracks.sh
- glyrc.cover.photo.sh
Bind them to your .bashrc file by
source /path/to/music-utils/scripts/index.sh
Index.sh also creates an alias for bulk fetching cover photos with glyrc.
Music/Artist $> music-utils-cdrip Album\ Name
Creates a folder 'Album Name' from your current position (pwd), rips the cd in your cd-drive (with help from cdparanoia), converts all wav-files to flac-files wav2flac and setting tags "Album" and "Artist" according to values in current path
Music/Artist/2020 Album $> music-utils-cover-photo
Parse your current position (pwd) to extract artist and album information. Then, with help from sacad, searches the Internet for matching cover photos and places the resulting image in a 'cover.jpg' file
Music/Artist/YYYY Album $> music-utils-tag-album
Music/Artist $> music-utils-tag-album -a YYYY Album
Music/Artist $> music-utils-tag-album --album YYYY Album
Parse your current position (pwd) to extract artist and album information. Then, for each file in current directory, extracts information either from flac, mp3 or file path, structurize these, rewrites tags and renames folder to match with standardized structure as follows:
- Artist/YYYY Album name
- Artist/YYYY Album name [extended info]
- Artist/YYYY Album name (Disc 1∕2)
Music/Artist/2020 Album $> tag-tracks.sh -f /path/to/tracks.txt
As tag-album but fetches tracks info from provided tracks.txt file
If your catalog consist of ie
| - A
| - A Band
| - B
| - Band, A
where A Band is actually the same band as Band, A , similarities script will output as a table
/> ./scripts/similarities.sh -A /path/to/origin/ -B /path/to/comparator/ -T 0.5 -Q > output.table
Where
- -A is base directory
- -B is comparing directory
- -T is threshold of equality
- -Q to quiet