Merge pull request #354 from karyeet/album-isrc-sto-patch
SimplifiedTrackObject from album does not have external_ids
This commit is contained in:
commit
76c237346e
@ -128,7 +128,7 @@ export class SpotifyTrack {
|
|||||||
constructor(data: any) {
|
constructor(data: any) {
|
||||||
this.name = data.name;
|
this.name = data.name;
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
this.isrc = data.external_ids.isrc || '';
|
this.isrc = data.external_ids?.isrc || '';
|
||||||
this.type = 'track';
|
this.type = 'track';
|
||||||
this.url = data.external_urls.spotify;
|
this.url = data.external_urls.spotify;
|
||||||
this.explicit = data.explicit;
|
this.explicit = data.explicit;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user