1.4 KiB
lastfmpris
a rust application to scrobble your currently playing song on last.fm with mpris
limitations
unfortunately, because of how most mpris players work, the Track_Id (unique identifier for every song in the tracklist) object is very rarely supported, or, if supported, implemented incorrectly (looking at you, Cider) meaning it is impossible to tell if the track has been played twice in a row. this means you cannot have succssive scrobbles of the same song, sorry! besides this, i'd say the program is feature complete.
configuration
copy the values from .env.example
into a .env
file and configure your api keys, and the api keys are available here
you also have the option to define your mpris bus name, which will instead wait for your specified player instead of waiting for the first active player
how to install
if you're on a setup that uses nix, you can just use nix build
or the provided devshell to build the application.
first, clone repository:
git clone https://git.reidlab.pink/reidlab/lastfmpris && cd lastfmpris
second, obtain dependencies (this will vary on your package manager, here, alpine is used)
sudo apk add install pkgconf openssl dbus
finally, run/build
cargo run
cargo build --release