From 16482faed16b89f8aff573053e1ade38c3538333 Mon Sep 17 00:00:00 2001 From: hugovk Date: Wed, 26 Feb 2014 13:41:35 +0200 Subject: [PATCH] Add library.removeScrobble --- pylast.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pylast.py b/pylast.py index db824c3..3fd490d 100644 --- a/pylast.py +++ b/pylast.py @@ -2059,6 +2059,21 @@ class Library(_BaseObject): return seq + def remove_scrobble(self, artist, title, timestamp): + """Remove a scrobble from a user's Last.fm library. Parameters: + artist (Required) : The artist that composed the track + title (Required) : The name of the track + timestamp (Required) : The unix timestamp of the scrobble + that you wish to remove + """ + + params = self._get_params() + params["artist"] = artist + params["track"] = title + params["timestamp"] = timestamp + + self._request("library.removeScrobble", False, params) + class Playlist(_BaseObject): """A Last.fm user playlist."""