fix: not fetching all followed artists (#759)

Co-authored-by: me <whickle@gmail.com>
This commit is contained in:
wescode 2023-09-29 08:44:26 -04:00 committed by GitHub
parent e54762be6a
commit c09a572925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;