Save the ISRC to SpotifyTrack

This commit is contained in:
KingRainbow44 2022-07-17 12:07:40 -04:00
parent ce9c574607
commit 5dc1eff4eb
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -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;