From 4083f72ef7825c4919ee424fc600f6808979311d Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 14 Apr 2018 22:50:42 +0300 Subject: [PATCH] Store all images on get_cover_image for future use --- pylast/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index 0586b42..3b9b0c1 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -732,6 +732,7 @@ class _Request(object): """Representing an abstract web service operation.""" def __init__(self, network, method_name, params=None): + print(method_name) if params is None: params = {} @@ -1501,11 +1502,10 @@ class Album(_Opus): SIZE_SMALL """ if not self.images: - return _extract_all( + self.images = _extract_all( self._request(self.ws_prefix + ".getInfo", cacheable=True), - 'image')[size] - else: - return self.images[size] + 'image') + return self.images[size] def get_tracks(self): """Returns the list of Tracks on this album."""