Mopidy extension for scrobbling played tracks to Last.fm and Libre.fm.
This extension requires a free user account at Last.fm and/or Libre.fm.
Install by running:
pip install Mopidy-Scrobbler
Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.
The extension is enabled by default when it is installed. You just need to add
your Last.fm and/or Libre.fm username and password to your Mopidy configuration
file, typically found at ~/.config/mopidy/mopidy.conf
:
[scrobbler] lastfm_username = alice lastfm_password = secret librefm_username = bob librefm_password = anotherSecret
The following configuration values are available:
scrobbler/enabled
: If the scrobbler extension should be enabled or not.scrobbler/lastfm_username
: Your Last.fm username.scrobbler/lastfm_password
: Your Last.fm password.scrobbler/librefm_username
: Your Libre.fm username.scrobbler/librefm_password
: Your Libre.fm password.
- Allow scrobbling to Libre.fm. A session key must be created beforehand. This authentication launches the default Web browser to do so. If Mopidy is run by a user without a default Web browser or without access to the current display session, the URL given in the log output must be opened manually.
- This version introduces configuration changes.
username
andpassword
are nowlastfm_username
,lastfm_password
andlibrefm_username
,librefm_password
for Last.fm and Libre.fm respectively.
- Scrobble only the first given artist instead of a concatenated string of all existing artists to prevent Last.fm from creating bogus artist pages.
- Updated to work with
None
as the default value oftrack_no
in Mopidy'sTrack
model. This was changed in Mopidy 0.19.5. (Fixes: #7)
- Updated extension API to match Mopidy 0.18.
- Moved extension out of the main Mopidy project.
- Added test suite.