aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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,