Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SpotifyAlbum

Spotify Album Class

Hierarchy

  • SpotifyAlbum

Index

Constructors

Properties

artists: SpotifyArtists[]

Spotify Album artists [ array ]

copyrights: SpotifyCopyright[]

Spotify Album copyright data [ array ]

fetched_tracks: Map<string, SpotifyTrack[]>

Spotify Album fetched tracks Map

id: string

Spotify Album id

name: string

Spotify Album Name

release_date: string

Spotify Album Release date

release_date_precision: string

Spotify Album Release Date precise

search: boolean

Boolean to tell whether it is a searched result or not.

spotifyData: SpotifyDataOptions

Spotify Album Spotify data

thumbnail: SpotifyThumbnail

Spotify Album Thumbnail data

tracksCount: number

Spotify Album total no of tracks

type: "playlist" | "track" | "album"

Spotify Class type. == "album"

url: string

Spotify Album url

Accessors

  • get total_pages(): number
  • get total_tracks(): number
  • Spotify Album total no of tracks that have been fetched so far.

    Returns number

Methods

  • Fetches Spotify Album tracks more than 50 tracks.

    For getting all tracks in album, see total_pages property.

    Returns Promise<SpotifyAlbum>

    Album Class.

  • Spotify Album tracks are divided in pages.

    For example getting data of 51 - 100 videos in a album,

    const album = await play.spotify('album url')

    await album.fetch()

    const result = album.page(2)

    Parameters

    • num: number

      Page Number

    Returns undefined | SpotifyTrack[]

Generated using TypeDoc