mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-10 12:11:35 +02:00
Fix infinite loop
Resolves https://github.com/codetheweb/muse/issues/884
This commit is contained in:
parent
90d083acdd
commit
c8414f2714
2 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue