Script that identifies track title and artist from a list of MP3 files, thanks to audio fingerprinting.
./fetch-metadata.sh
identifies and prints the track title and artist of each mp3 file found recursively from the current directory.
Don't forget to run npm install
before usage.
This script was successfully tested on Mac OS 10.11.6 (El Capitan) in September 2016.
This is an sample from the standard output, after running ./fetch-metadata.sh
from a directory containing MP3 files:
./rock/Lenny Kravitz - Always On The Run.mp3 => {"title":"Always on the Run","artist":"Lenny Kravitz"}
./rock/Agua Verde (Ft. Kathleen Delano, Kurt Travis, & Gavin Mulkey) - Strawberry Girls.mp3 => {"title":"Agua Verde","artist":"Strawberry Girls"}
./rock/Desmond Myers - Good Morning Portugal.mp3 => {"error":"No metadata was returned for this track."}
./rock/Title Fight - 'Numb, But I Still Feel It'.mp3 => {"title":"Numb, but I Still Feel It","artist":"Title Fight"}
./rock/Throwing Muses • Shimmer • 1995.mp3 => {"title":"Shimmer","artist":"Throwing Muses"}
./rock/FAILURE - ENJOY THE SILENCE -[[ COVERStoDM ]]-.mp3 => {"title":"Enjoy the Silence","artist":"Failure"}