From 53be0e5f062786349d3a0a8b193bb2ad8be1ef2d Mon Sep 17 00:00:00 2001 From: Kaushik Ganesh Date: Tue, 1 Dec 2015 19:20:34 +0530 Subject: [PATCH] Fix album.get_tracks() --- pylast/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index 4c5e28f..ca65067 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -1857,9 +1857,9 @@ class Album(_Opus): def get_tracks(self): """Returns the list of Tracks on this album.""" - uri = 'lastfm://playlist/album/%s' % self.get_id() - - return XSPF(uri, self.network).get_tracks() + return _extract_tracks( + self._request( + self.ws_prefix + ".getInfo", cacheable=True), "tracks") def get_url(self, domain_name=DOMAIN_ENGLISH): """Returns the URL of the album or track page on the network.