Crates.io | mpdlisten |
lib.rs | mpdlisten |
version | 0.5.1 |
source | src |
created_at | 2023-11-28 13:38:40.703203 |
updated_at | 2024-06-09 23:36:03.525339 |
description | MPD scrobbler for listenbrainz platform, with some additional features |
homepage | |
repository | https://codeberg.org/anriha/mpdlisten |
max_upload_size | |
id | 1052001 |
size | 123,157 |
MPD scrobbler for listenbrainz platform.
This project is in very early stages so expect lots of changes. Also it mainly expects you to use beets or similar program to tag your music beforehand. It will try to match the song anyway but it will not cache the results in anyway so it is not ideal.
If you need more mature solution (with less ListenBrainz specific features) use listenbrainz-mpd.
Currently there are two ways to install mpdlisten.
cargo install mpdlisten
This project contains nix flake so you can install it with
nix run git+https://codeberg.org/anriha/mpdlisten
or you can add it as a module to your nixos configuration.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
mpdlisten.url = "git+https://codeberg.org/anriha/mpdlisten";
};
outputs = { nixpkgs, mpdlisten, ... }: {
nixosConfigurations."«hostname»" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ mpdlisten.nixosModules.x86_64-linux.mpdlisten ];
};
};
}
And after that you can enable it in your configuration like this
services.mpdlisten = {
enable = true;
listenbrainz = {
tokenFile = "«tokenFile»";
username = "«username»";
fetchJams = true;
fetchExploration = true;
syncLoved = true;
};
};
To configure if you are not using nix. Use default config location, on Linux this would be $XDG_CONFIG_HOME/mpdlisten/mpdlisten.ini
or you can manually specify configuration file with command line -c location/mpdlisten.ini
.
To understand configuration file please take a look at the sample one.
You can send ListenBrainz feedback with mpd channels. Easiest way is with mpc
mpc sendmessage mpdlisten love
mpc sendmessage mpdlisten hate