#lastfm #mpd #love #spread #track #config #

app mpdheart

spread love around your library ♡

1 unstable release

0.1.0 Mar 22, 2024

#570 in Command line utilities

Download history 109/week @ 2024-03-17 5/week @ 2024-03-24 21/week @ 2024-03-31 1/week @ 2024-04-07

52 downloads per month

Apache-2.0

27KB
301 lines

mpdheart

spread love around your library ♡

scrot

Installation

crates.io

cargo install mpdheart

Usage

to love the currently playing track:

mpdheart

to unlove:

mpdheart -u

as simple as that!

Configuration

mpdheart can be configured by editing the configuration file at ~/.config/mpdheart/config.toml or $XDG_CONFIG_HOME/mpdheart/config.toml

if the config is not found, it will attempt to write an empty config in that path, you need to at least edit the last.fm username and password to be able to un/love tracks

after the first successful run, the config will be lossly rewritten to add the last.fm session key, this means any comments will be lost. this only happens once

Example

[mpd] # optional, uses default mpd values if not specified
host = "0.0.0.0"
port = 6600

[lastfm] # after the first run, there will be an additional generated key `session_key`
username = "nya" # required
password = "awa" # required

can also be found at config/example.toml

License

Apache-2.0

Dependencies

~4–15MB
~185K SLoC