From a34a7ea6aa4d1682e54463e01b0b6d1b0529c4dd Mon Sep 17 00:00:00 2001 From: Amr Hassan Date: Sun, 30 Aug 2009 20:42:16 +0000 Subject: [PATCH] Closes issue #21: 'limit' support in get_loved_tracks --- pylast.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylast.py b/pylast.py index fa060b1..57a4113 100644 --- a/pylast.py +++ b/pylast.py @@ -2123,10 +2123,10 @@ class User(_BaseObject): return list - def get_loved_tracks(self): - """Returns the last 50 tracks loved by this user. """ + def get_loved_tracks(self, limit=50, page=1): + """Returns the loved tracks by this user """ - doc = self._request('user.getLovedTracks', True) + doc = self._request('user.getLovedTracks', True, {"limit": str(limit), "page": str(page)}) list = [] for track in doc.getElementsByTagName('track'):