diff --git a/mcg/client.py b/mcg/client.py index 7ef3028..6ae6b20 100644 --- a/mcg/client.py +++ b/mcg/client.py @@ -611,6 +611,10 @@ class Client(Base): def _queue_album(self, album): track_ids = [] + # check whether the album to queue is already the last in the playlist + if self._playlist and self._playlist[-1] == self._albums[album]: + # return the first song in the album + return [self._playlist[-1].get_tracks()[0].get_id()] if album in self._albums: self._logger.info("add album %s", album) for track in self._albums[album].get_tracks():