mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Merge pull request #273 from AtariTom/main
This commit is contained in:
@@ -93,6 +93,10 @@ export class SpotifyTrack {
|
|||||||
* Spotify Track explicit info.
|
* Spotify Track explicit info.
|
||||||
*/
|
*/
|
||||||
explicit: boolean;
|
explicit: boolean;
|
||||||
|
/**
|
||||||
|
* Spotify Track playability info.
|
||||||
|
*/
|
||||||
|
playable: boolean;
|
||||||
/**
|
/**
|
||||||
* Spotify Track Duration in seconds
|
* Spotify Track Duration in seconds
|
||||||
*/
|
*/
|
||||||
@@ -123,6 +127,7 @@ export class SpotifyTrack {
|
|||||||
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;
|
||||||
|
this.playable = data.is_playable;
|
||||||
this.durationInMs = data.duration_ms;
|
this.durationInMs = data.duration_ms;
|
||||||
this.durationInSec = Math.round(this.durationInMs / 1000);
|
this.durationInSec = Math.round(this.durationInMs / 1000);
|
||||||
const artists: SpotifyArtists[] = [];
|
const artists: SpotifyArtists[] = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user