From 20f9108ebfff8fc72d4a4c842cf40248cca42d5c Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Tue, 28 May 2019 17:34:44 +0200 Subject: [PATCH] Fix artists and albums limit --- src/tidal/tidalrequest.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tidal/tidalrequest.cpp b/src/tidal/tidalrequest.cpp index 5a1a96792..4429701ce 100644 --- a/src/tidal/tidalrequest.cpp +++ b/src/tidal/tidalrequest.cpp @@ -271,7 +271,6 @@ void TidalRequest::ArtistsReceived(QNetworkReply *reply) { requests_artist_albums_.append(artist_id); GetArtistAlbums(artist_id); artist_albums_requested_++; - if (artist_albums_requested_ >= service_->artistssearchlimit()) break; } @@ -441,7 +440,7 @@ void TidalRequest::AlbumsReceived(QNetworkReply *reply, const int artist_id, con requests_album_songs_.insert(album_id, artist); album_songs_requested_++; - if (album_songs_requested_ >= service_->albumssearchlimit()) break; + } AlbumsFinished(artist_id, offset_requested, total_albums, limit, albums); @@ -455,7 +454,7 @@ void TidalRequest::AlbumsFinished(const int artist_id, const int offset_requeste Error("Albums returned does not match limit returned!"); } int offset_next = offset_requested + albums; - if (album_songs_requested_ < service_->albumssearchlimit() && offset_next < total_albums) { + if (offset_next < total_albums) { GetArtistAlbums(artist_id, offset_next); artist_albums_requested_++; }