@iamtraction/play-dl
    Preparing search index...

    Class SpotifyAlbum

    Spotify Album Class

    Index
    artists: SpotifyArtists[]

    Spotify Album artists [ array ]

    copyrights: SpotifyCopyright[]

    Spotify Album copyright data [ array ]

    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

    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

    • get total_tracks(): number

      Spotify Album total no of tracks that have been fetched so far.

      Returns number

    • 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 SpotifyTrack[] | undefined