lastfm

class platypush.plugins.lastfm.LastfmPlugin(api_key, api_secret, username, password)[source]

Plugin to interact with your Last.FM (https://last.fm) account, update your current track and your scrobbles.

Requires:

  • pylast (pip install pylast)

__init__(api_key, api_secret, username, password)[source]
Parameters
scrobble(artist, title, album=None, **kwargs)[source]

Scrobble a track to Last.FM

Parameters
  • artist (str) – Artist

  • title (str) – Title

  • album (str) – Album (optional)

update_now_playing(artist, title, album=None, **kwargs)[source]

Update the currently playing track

Parameters
  • artist (str) – Artist

  • title (str) – Title

  • album (str) – Album (optional)