lyriks
A command line tool that fetches lyrics from Genie.
Installation
Build the wheel and install it with pip:
python -m build --wheel
pip install dist/lyriks-0.2.1-py3-none-any.whl
Alternatively, you can directly run the script from the repository:
`./lyriks.py /path/to/music/folder`
Make sure to first install the required dependencies from pyproject.toml.
Usage
Simply run the script with the path to the folder containing your music as an argument. This can be your whole collection, a single artist, or a single album.
lyriks /path/to/music/folder
The script will search for audio files (.flac or .mp3) in the given folder, and attempt to fetch the lyrics.
Note that it will only be able to do that for files that are properly tagged with MusicBrainz MBIDs
(specifically musicbrainz_releasegroupid and musicbrainz_trackid).
It then uses them to resolve the Genie album ID from the release or release group on MusicBrainz.
Thus, at least one release in the release group must have a URL relationship to the album on Genie.
If successful, the lyrics will be downloaded and stored next to the audio files with the appropriate extension
(.lrc or .txt, depending on whether they're synced or not).
Release files for lyriks 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lyriks-0.2.1.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lyriks-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:14.9 kB
Release files / lyriks-0.2.1.tar.gz
| Download URL | lyriks-0.2.1.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
846d743bb52dfbb8165d1a0b5f739597921a041de8457f28a7631a7f86061aca
|
|
BLAKE2b-256 checksum How to use checksums |
02078547d7241f73bff39d48303072efaeddf8684497a430672e7c53463d43f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3
|
Release files / lyriks-0.2.1-py3-none-any.whl
| Download URL | lyriks-0.2.1-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c828cda55f0019d9b57241cab56083f33ff4df11e99876f32d5e2232ddf841a8
|
|
BLAKE2b-256 checksum How to use checksums |
966f1f2d4f13572d1e89e27d9132c196eac807a936c329d858b222cb43523e4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3
|