Skip to main content

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.3-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).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lyriks-0.2.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lyriks-0.2.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file lyriks-0.2.3.tar.gz.

File metadata

  • Download URL: lyriks-0.2.3.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3

File hashes

Hashes for lyriks-0.2.3.tar.gz
Algorithm Hash digest
SHA256 da30f9d6cdf3a56829fadfe7eb9827ad1fd57903cb98bd3970d69cc99e051e10
MD5 c341fe5cf376d6388266ee1fda7a8642
BLAKE2b-256 361adf0efe5a55d5bd30ea82ecc82e9afecc1e97dbb6b5f2fb146dd9e198b437

See more details on using hashes here.

File details

Details for the file lyriks-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: lyriks-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.1.dev0+g94f810c.d20240510 CPython/3.12.3

File hashes

Hashes for lyriks-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a552b8eb8839c95bc5a52977aee3b3c32394593c62facc74fbaa013b06ab9d7e
MD5 885d401c9edfda647a4581019a78957f
BLAKE2b-256 f92e3c2dfb93714af20dbf780ee654611a4e9444489fb31d6c25f3b12e26dbb3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page