Crates.io | mpd-lyricsd |
lib.rs | mpd-lyricsd |
version | 0.1.0 |
source | src |
created_at | 2023-03-13 22:48:47.426146 |
updated_at | 2023-03-13 22:48:47.426146 |
description | Lyrics fetching service for MPD. |
homepage | |
repository | |
max_upload_size | |
id | 809314 |
size | 68,829 |
Lyrics fetching service for MPD.
Currently capable of fetching lyrics from Genius only.
cargo install mpd-lyricsd
git clone https://github.com/jakestanger/mpd-lyricsd
cd mpd-lyricsd
cargo build --release
mpd-lyricsd uses universal-config, which means it supports any of JSON, YAML, TOML, and Corn.
Create a file of your preferred type at ~/.config/mpd-lyricsd/
called config
, for example config.corn
.
Name | Type | Default | Description |
---|---|---|---|
lyrics_path |
String | null |
[Required] Path to save lyrics on disk. |
genius.access_token |
String | null |
[Required] Access token for Genius API. See below. |
mpd.address |
String | localhost:6600 |
TCP or Unix socket to connect to MPD on. |
config.toml
:
lyrics_path = "/home/jake/Music/.lyrics"
[genius]
access_token = "<redacted>"
[mpd]
address = "media-server:6600"
Genius requires you to provide an access token to authenticate against the API.
To create one, you require a Genius account, and then must create an API Client registration. Create one here: https://genius.com/api-clients/new.
You can use any app name and website URL.
Once created, generate an access token and copy it into your config.