Skip to content

Commit

Permalink
fix: not fetching all followed artists (#759)
Browse files Browse the repository at this point in the history
Co-authored-by: me <[email protected]>
  • Loading branch information
wescode and me authored Sep 29, 2023
1 parent e54762b commit c09a572
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/services/queries/artist.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ class ArtistQueries {
return page.items?.toList() ?? [];
}

following.addAll(page.items ?? []);
while (page?.isLast != true) {
following.addAll(page?.items ?? []);
page = await spotify.me
.following(FollowingType.artist)
.getPage(50, page?.after ?? '');
following.addAll(page.items ?? []);
}

return following;
Expand Down

0 comments on commit c09a572

Please sign in to comment.