Fix infinite loop

Resolves https://github.com/codetheweb/muse/issues/884
This commit is contained in:
Max Isom 2023-02-14 19:12:19 -08:00
parent 90d083acdd
commit c8414f2714
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
2 changed files with 3 additions and 1 deletions

View file

@ -96,7 +96,7 @@ export default class {
let nextToken: string | undefined;
while (playlistVideos.length !== playlist.contentDetails.itemCount) {
while (playlistVideos.length < playlist.contentDetails.itemCount) {
// eslint-disable-next-line no-await-in-loop
const {items, nextPageToken} = await this.cache.wrap(
this.youtube.playlists.items,