Automatically find and embed song lyrics.
This script scans a specified directory for audio files, and for each file, finds lyrics from Lyricsify.com or Genius.com (as a fallback), and saves them to the file's metadata.
Perfect for use with Spotiflyer, Retro Music Player, and Syncthing to reduce your dependence on music streaming services.
- Install Python.
- Install dependencies by running
pip install -r requirements.txt
. - Copy
template.env
to a new file called.env
and add a valid Genius.com access token to it (or set the appropriate environment variable some other way).- If no token is provided, only Lyricsify.com will be used as a data source.
- Also add a browser user-agent under the HEADER variable. You can get your very own here - it's the field at the top.
Run python main.py "path/to/folder"
.
useful tip for noobs: you can drag a folder into the terminal window to paste its full path 👍