I have a large music library (most of them are .mp3
& .m4a
) and none of them have lyrics. Is there any program or plug-in that automatically adds lyrics to all of my music by querying the internet?
Because I don't usually have an Internet connection I need a program which automatically adds all lyrics to music file tags so I can view them offline.
Best Answer
This is a semi answer as I don't know your environment and the code I provide is intended to serve as an example only - running it as is shouldn't do any harm but I can't give any guarantee.
Tasks like this can be dealt with using simple bash scripts, e.g. in the following example I use eyeD3 to extract artist and title, then a free wikilyrics mirror to fetch the lyrics and then eyeD3 again to save the new tag. I encourage every one who will use this code to look up another lyrics API, as exploiting the same service over and over can be considered malicious.
Instructions (run commands in terminal):
wget
andeyeD3
by issuingsudo apt-get install wget eyed3
/home/user/lyrics_fetcher.sh
chmod u+x /home/user/lyrics_fetcher.sh
/home/user/lyrics_fetcher.sh "path_to_my_album"
I checked this code with "AM" album by Arctic Monkeys and it did sweetly.
If you really want to fetch lyrics for all of your albums at once you can run the script in a loop for each directory, I guess. Still, I wouldn't use it as a final solution - wikilyrics and everyone who supports it by mirroring are good guys and this answer is here to promote thinking, not abuse.