No project description provided
Project description
lrcdl
lrcdl is a command-line tool for fetching lyrics from audio files using https://lrclib.net.
Installation
pip install lrcdl
Basic Usage
Download lyrics (.lrc) from a track:
lrcdl song.mp3
By default, lrcdl will only download timed lyrics if they're found. To include plain, non-timed lyrics, use the --include-plain flag:
lrcdl song.mp3 --include-plain
Which will download plain lyrics only if timed ones were not found.
Supplying metadata
lrcdl relies on the metadata inside the audio track to find lyrics. In cases where the audio file does not have enough metadata, you can manually fill them in using the following parameters: --title, --album, --artist
Example:
lrcdl "Ghost Division.flac" --title "Ghost Division" --album "The Art of War" --artist Sabaton
Downloading lyrics for entire music library
If you have a music library and you want to download lyrics for all tracks, you can use the -r/--recursive option while specifying a directory as the path:
lrcdl /PATH/TO/MUSIC -r
Note that lrcdl will skip files that already have an LRC file and will not overwrite them.
This command can be safely setup as a scheduled task or a cron job to download lyrics on a nightly basis, however if you have a lot of tracks in your library which lrcdl cannot find lyrics for, then lrcdl will continue to try and download lyrics for them on every run.
To improve performance and avoid unnecessary strain on lrclib's servers, you're highly advised to specify a cache file to skip already-checked files on the next run:
lrcdl /PATH/TO/MUSIC/ -r --cache /PATH/TO/CACHE/cache.txt
Python API
To use within Python:
from lrcdl import Track, Options
options = Options()
# or specify a path
options = Options(download_path="/path/file.lrc")
track = Track("/path/to/song.mp3")
track.download_lyrics(options)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lrcdl-0.2.6.tar.gz.
File metadata
- Download URL: lrcdl-0.2.6.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.2 Linux/6.1.0-23-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57f92ec57ad5825ac254b00c21497cbd3e9fbd30393d6d72293cac2751d30456
|
|
| MD5 |
0ed8ccdff526c9282c1e3d2c674beb87
|
|
| BLAKE2b-256 |
90b3da411c777b3fcfe60ddc7c2dff810eb5329216218053793c9b9f8a6bc603
|
File details
Details for the file lrcdl-0.2.6-py3-none-any.whl.
File metadata
- Download URL: lrcdl-0.2.6-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.2 Linux/6.1.0-23-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
891b75a4b7c8164d97b3279f0c3d52f842fa4af50f8a21dbff980e4473e236ee
|
|
| MD5 |
024a6221a6de9f26fad03227724ed5d6
|
|
| BLAKE2b-256 |
e7ee806fdfd660e67fb3779c2dc802bd8267aee7b2aa60830e1e9bb29cd48d8b
|