From 58f79fcacca69d7d4ef900e9f9f9ae23f55b916e Mon Sep 17 00:00:00 2001 From: Kareem <28524112+karyeet@users.noreply.github.com> Date: Sun, 9 Jul 2023 01:45:47 -0700 Subject: [PATCH] SimplifiedTrackObject from album does not have external_ids --- 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 66bd487..ad2828f 100644 --- a/play-dl/Spotify/classes.ts +++ b/play-dl/Spotify/classes.ts @@ -128,7 +128,7 @@ export class SpotifyTrack { constructor(data: any) { this.name = data.name; this.id = data.id; - this.isrc = data.external_ids.isrc || ''; + this.isrc = data.external_ids?.isrc || ''; this.type = 'track'; this.url = data.external_urls.spotify; this.explicit = data.explicit;