diff options
| author | Max Isom <[email protected]> | 2023-02-14 19:12:19 -0800 |
|---|---|---|
| committer | Max Isom <[email protected]> | 2023-02-14 19:13:35 -0800 |
| commit | c8414f2714b6a289eb3f224cb5470c7ac8fcb87a (patch) | |
| tree | 7c5270804541b58f6571890427dc0e03fa1dcadc /src/services | |
| parent | 90d083acddee6f5bf071fd54fcd561becf499128 (diff) | |
| download | muse-c8414f2714b6a289eb3f224cb5470c7ac8fcb87a.tar.xz muse-c8414f2714b6a289eb3f224cb5470c7ac8fcb87a.zip | |
Fix infinite loop
Resolves https://github.com/codetheweb/muse/issues/884
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/youtube-api.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
