Skip to main content

Last.fm scrobbler via MPRIS2 in Linux

Project description

Last.fm scrobbler

A Last.fm scrobbler via MPRIS2 in Linux, implemented via pylast and mpris2

Modified based on dbus-scrobbler

Features

  • scrobble music to Last.fm if one of the conditions are met:

    • played for 4 mins
    • played for half the length
  • scrobble now playing status

  • offline storage support

Alternatives

If you'd like a scrobbler similar to this, there're some choices. I recommand taking a look at scrobblez, which is more functional (at least for now).

Also, although rescrobbled may also work, in my case it raised "Dbus error: argument type mismatch".

What is MPRIS2?

MPRIS (Media Player Remote Interfacing Specification) is a standard D-Bus (Desktop Bus) interface that allows applications to communicate with and control media players running on a Linux desktop environment.

Thus, this scrobbler is a general-purpose one under the Linux desktop environment, supporting scrobble music from media players without a built-in Last.fm scrobbling feature.

Check if your media player supports MPRIS2 via playerctl (when it is running)

playerctl --list-all

Installation

pip install -r requirements.txt

Configurations

cp config.yaml.example config.yaml
vim config.yaml

details can be found in the config file

Usage

python main.py config.yaml

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lastfm-mpris2-scrobbler-0.2.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lastfm_mpris2_scrobbler-0.2.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file lastfm-mpris2-scrobbler-0.2.0.tar.gz.

File metadata

  • Download URL: lastfm-mpris2-scrobbler-0.2.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for lastfm-mpris2-scrobbler-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d96af9077a951f34a0dc87b34c96df044f5b2622f169ec53873f4ba898f44f1e
MD5 3ab7d5b071b4a43c701ae684488afff1
BLAKE2b-256 ba8642d2920beda3c452f2520503270c8638d0f653f30061283017a0061aaa17

See more details on using hashes here.

File details

Details for the file lastfm_mpris2_scrobbler-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lastfm_mpris2_scrobbler-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 72f916d3c8800f51f7fc7ac7ac30ddf1955ef941d8922216f735b75092d21b37
MD5 fa622a5f0a311221381b9266f5660285
BLAKE2b-256 bd6056234133ee32dee82a3d46af7e4b5bca0ca188ba77e07fbe83fca483e1c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page