fix(spotify): use data.next for playlist pagination instead of filtered track count
Fixes #52, Fixes #35
This commit is contained in:
@@ -224,7 +224,7 @@ export class SpotifyApiService {
|
|||||||
allTracks.push(...pageTracks);
|
allTracks.push(...pageTracks);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pageTracks.length < 100) {
|
if (!data.next) {
|
||||||
hasMoreTracks = false;
|
hasMoreTracks = false;
|
||||||
} else {
|
} else {
|
||||||
offset += 100;
|
offset += 100;
|
||||||
|
|||||||
Reference in New Issue
Block a user