diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index 4befdb7..21e2140 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -2128,6 +2128,8 @@ class Track(_Opus): def get_album(self): """Returns the album object of this track.""" + if "album" in self.info and self.info["album"] is not None: + return Album(self.artist, self.info["album"], self.network) doc = self._request(self.ws_prefix + ".getInfo", True)