mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Merge pull request #354 from karyeet/album-isrc-sto-patch
SimplifiedTrackObject from album does not have external_ids
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user