From 5dc1eff4eb589f627f4bc1fd8286ed8f54dab1e3 Mon Sep 17 00:00:00 2001 From: KingRainbow44 Date: Sun, 17 Jul 2022 12:07:40 -0400 Subject: [PATCH] Save the ISRC to `SpotifyTrack` --- play-dl/Spotify/classes.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/play-dl/Spotify/classes.ts b/play-dl/Spotify/classes.ts index c85f736..66bd487 100644 --- a/play-dl/Spotify/classes.ts +++ b/play-dl/Spotify/classes.ts @@ -85,6 +85,10 @@ export class SpotifyTrack { * Spotify Track ID */ id: string; + /** + * Spotify Track ISRC + */ + isrc: string; /** * Spotify Track url */ @@ -124,6 +128,7 @@ export class SpotifyTrack { constructor(data: any) { this.name = data.name; this.id = data.id; + this.isrc = data.external_ids.isrc || ''; this.type = 'track'; this.url = data.external_urls.spotify; this.explicit = data.explicit;