Skip to content
You can use it on your local pc to display your "now playing" from last.fm on your discord status.
Python
Branch: master
Clone or download
This branch is even with musca1997:master.

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
discord_stat.py
last.py
rpc.py

README.md

Last.fm to Discord Status

You can use it on your local pc to display your "now playing" from last.fm on your discord status.

RPC connection Based on Snazzah's SublimeDiscordRP

It displays the song you're playing on Last.fm:

Requirements

  • Python 3.6.1+
  • pylast (can be directly installed using pip3 install pylast)

How to Use

  1. Get an API key and secret from Last.fm API.

  2. Register an App on Discord API page, Get your client ID, and set the App's name as "Last.fm Scrobbler".

Edit Rich Presence Assets part.

  1. Open last.py file, add your Last.fm API key, API secret and your Last.fm username.

Open discord_stat.py file, add your Discord API client ID.

  1. run python3 last.py .

It won't clear the presence until you close it.

TODO list

  1. Automatically clear the "Last.fm Scrobbler" presence after music stops playing.

  2. Make a GUI so more non-programmers can use it.

  3. Being able to display the album cover image, not just simply a boring Last.fm logo.

You can’t perform that action at this time.