aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Isom <[email protected]>2023-02-14 19:12:19 -0800
committerMax Isom <[email protected]>2023-02-14 19:13:35 -0800
commitc8414f2714b6a289eb3f224cb5470c7ac8fcb87a (patch)
tree7c5270804541b58f6571890427dc0e03fa1dcadc /src
parent90d083acddee6f5bf071fd54fcd561becf499128 (diff)
downloadmuse-c8414f2714b6a289eb3f224cb5470c7ac8fcb87a.tar.xz
muse-c8414f2714b6a289eb3f224cb5470c7ac8fcb87a.zip
Fix infinite loop
Resolves https://github.com/codetheweb/muse/issues/884
Diffstat (limited to 'src')
-rw-r--r--src/services/youtube-api.ts2
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,