Merge pull request #157 from mushimaster/fix-get_tracks

Fix album.get_tracks()
This commit is contained in:
Hugo 2015-12-02 17:12:55 +02:00
commit 307b904cad

View file

@ -1857,9 +1857,9 @@ class Album(_Opus):
def get_tracks(self): def get_tracks(self):
"""Returns the list of Tracks on this album.""" """Returns the list of Tracks on this album."""
uri = 'lastfm://playlist/album/%s' % self.get_id() return _extract_tracks(
self._request(
return XSPF(uri, self.network).get_tracks() self.ws_prefix + ".getInfo", cacheable=True), "tracks")
def get_url(self, domain_name=DOMAIN_ENGLISH): def get_url(self, domain_name=DOMAIN_ENGLISH):
"""Returns the URL of the album or track page on the network. """Returns the URL of the album or track page on the network.