Search
Preparing search index...
The search index is not available
play-dl
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
play-dl
<internal>
SpotifyTrack
Class SpotifyTrack
Class for Spotify Track
Hierarchy
SpotifyTrack
Index
Constructors
constructor
Properties
album
artists
duration
In
Ms
duration
In
Sec
explicit
id
name
thumbnail
type
url
Methods
toJSON
Constructors
constructor
new
Spotify
Track
(
data
:
any
)
:
SpotifyTrack
Parameters
data:
any
Returns
SpotifyTrack
Properties
album
album
:
undefined
|
SpotifyTrackAlbum
artists
artists
:
SpotifyArtists
[]
duration
In
Ms
duration
In
Ms
:
number
duration
In
Sec
duration
In
Sec
:
number
explicit
explicit
:
boolean
id
id
:
string
name
name
:
string
thumbnail
thumbnail
:
undefined
|
SpotifyThumbnail
type
type
:
"playlist"
|
"track"
|
"album"
url
url
:
string
Methods
toJSON
toJSON
(
)
:
{
album
:
undefined
|
SpotifyTrackAlbum
;
artists
:
SpotifyArtists
[]
;
durationInMs
:
number
;
durationInSec
:
number
;
explicit
:
boolean
;
id
:
string
;
name
:
string
;
thumbnail
:
undefined
|
SpotifyThumbnail
;
type
:
"playlist"
|
"track"
|
"album"
;
url
:
string
}
Returns
{
album
:
undefined
|
SpotifyTrackAlbum
;
artists
:
SpotifyArtists
[]
;
durationInMs
:
number
;
durationInSec
:
number
;
explicit
:
boolean
;
id
:
string
;
name
:
string
;
thumbnail
:
undefined
|
SpotifyThumbnail
;
type
:
"playlist"
|
"track"
|
"album"
;
url
:
string
}
album
:
undefined
|
SpotifyTrackAlbum
artists
:
SpotifyArtists
[]
duration
In
Ms
:
number
duration
In
Sec
:
number
explicit
:
boolean
id
:
string
name
:
string
thumbnail
:
undefined
|
SpotifyThumbnail
type
:
"playlist"
|
"track"
|
"album"
url
:
string
Exports
<internal>
"node:stream/consumers"
"node:stream/promises"
Event
Emitter
internal
Spotify
Track
constructor
album
artists
duration
In
Ms
duration
In
Sec
explicit
id
name
thumbnail
type
url
toJSON
Generated using
TypeDoc
Class for Spotify Track