mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
fix: not fetching all followed artists (#759)
Co-authored-by: me <whickle@gmail.com>
This commit is contained in:
parent
e54762be6a
commit
c09a572925
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user