Pipris is an extensible MPRIS scrobbler written with Deno.
JavaScript 98.0%
Other 2.0%
6 1 0

Clone this repository

https://tangled.org/clay.rip/pipris https://tangled.org/did:plc:huu2fhy7acz36c4ktqxaq6hj/pipris
git@knot.tangled.wizardry.systems:clay.rip/pipris git@knot.tangled.wizardry.systems:did:plc:huu2fhy7acz36c4ktqxaq6hj/pipris

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

Pipris Version 0.1.1#

Pipris is an extensible MPRIS scrobbler written with Deno. It was originally created for teal.fm, but can be extended to support a wide variety of services (e.g. Last.fm or Discord rich presence).

The name is derived from piper + MPRIS.

Development#

The following modules are built in:

  • src/modules/discord.js

    Discord rich presence

  • src/modules/teal.js

    teal.fm scrobbler

  • src/modules/example.js.disabled

    Example module stub

Configuration#

For every module, there is a matching *.json file in the config folder. Most options should be self-explanatory, though some will be listed below for clarity.

global.json#

global.json currently has 1 option: "playerListMode". This can be set to one of three options:

  • "on"

    Will only capture MPRIS events from whitelisted players (defined in src/mpris.js).

  • "priority"

    All MPRIS events will be captured, but ones coming from players in the player list will be prioritised.

  • "off"

    The player list will be completely disabled.