From c8414f2714b6a289eb3f224cb5470c7ac8fcb87a Mon Sep 17 00:00:00 2001 From: Max Isom Date: Tue, 14 Feb 2023 19:12:19 -0800 Subject: Fix infinite loop Resolves https://github.com/codetheweb/muse/issues/884 --- src/services/youtube-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/services/youtube-api.ts b/src/services/youtube-api.ts index fd729b5..01a29dc 100644 --- a/src/services/youtube-api.ts +++ b/src/services/youtube-api.ts @@ -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, -- cgit v1.2.3