From 73644f6c9d79aabaa82d433d7398ca1cb3251495 Mon Sep 17 00:00:00 2001 From: Atari Tom Date: Thu, 31 Mar 2022 11:18:25 -0400 Subject: [PATCH] Added playability parameter to SpotifyTrack --- play-dl/Spotify/classes.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/play-dl/Spotify/classes.ts b/play-dl/Spotify/classes.ts index 2c50259..c85f736 100644 --- a/play-dl/Spotify/classes.ts +++ b/play-dl/Spotify/classes.ts @@ -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[] = [];