diff --git a/play-dl/Spotify/classes.ts b/play-dl/Spotify/classes.ts index 1bed113..59ccb71 100644 --- a/play-dl/Spotify/classes.ts +++ b/play-dl/Spotify/classes.ts @@ -236,7 +236,7 @@ export class SpotifyPlaylist { this.tracksCount = Number(data.tracks.total); const videos: SpotifyTrack[] = []; data.tracks.items.forEach((v: any) => { - if(v) videos.push(new SpotifyTrack(v.track)); + if(v.track) videos.push(new SpotifyTrack(v.track)); }); this.fetched_tracks = new Map(); this.fetched_tracks.set('1', videos);