From 55ec968501f1a7e8d31e37e2450c5f6ce61adfbd Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Tue, 14 Dec 2021 17:10:56 +0530 Subject: [PATCH] Fixed Spotify Class issue --- play-dl/Spotify/classes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-dl/Spotify/classes.ts b/play-dl/Spotify/classes.ts index f5b0185..1bed113 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) => { - videos.push(new SpotifyTrack(v.track)); + if(v) videos.push(new SpotifyTrack(v.track)); }); this.fetched_tracks = new Map(); this.fetched_tracks.set('1', videos);