Merge pull request #311 from KingRainbow44/main
Save the ISRC to `SpotifyTrack`
This commit is contained in:
commit
1ae7ba8fce
@ -85,6 +85,10 @@ export class SpotifyTrack {
|
|||||||
* Spotify Track ID
|
* Spotify Track ID
|
||||||
*/
|
*/
|
||||||
id: string;
|
id: string;
|
||||||
|
/**
|
||||||
|
* Spotify Track ISRC
|
||||||
|
*/
|
||||||
|
isrc: string;
|
||||||
/**
|
/**
|
||||||
* Spotify Track url
|
* Spotify Track url
|
||||||
*/
|
*/
|
||||||
@ -124,6 +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.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