Merge pull request #273 from AtariTom/main

This commit is contained in:
absidue 2022-03-31 17:34:32 +02:00 committed by GitHub
commit 21cb11d3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,6 +93,10 @@ export class SpotifyTrack {
* Spotify Track explicit info.
*/
explicit: boolean;
/**
* Spotify Track playability info.
*/
playable: boolean;
/**
* Spotify Track Duration in seconds
*/
@ -123,6 +127,7 @@ export class SpotifyTrack {
this.type = 'track';
this.url = data.external_urls.spotify;
this.explicit = data.explicit;
this.playable = data.is_playable;
this.durationInMs = data.duration_ms;
this.durationInSec = Math.round(this.durationInMs / 1000);
const artists: SpotifyArtists[] = [];