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

    Class DeezerAlbum

    Class for Deezer Albums

    Index
    artist: DeezerArtist

    The artist of the album

    available?: boolean

    Whether the album is available

    undefined for partial albums

    contributors?: DeezerArtist[]

    The contributors to the album

    undefined for partial albums

    The album cover available in four sizes

    durationInSec?: number

    The duration of the album in seconds

    undefined for partial albums

    explicit: boolean

    true if the album contains any explicit lyrics

    genres?: DeezerGenre[]

    The list of genres present in this album

    undefined for partial albums

    id: number

    The id of the album

    numberOfFans?: number

    The number of fans the album has

    undefined for partial albums

    partial: boolean

    Signifies that some properties are not populated

    Partial albums can be populated by calling DeezerAlbum.fetch.

    true for albums in search results and false if the album was fetched directly or expanded.

    recordType: string

    The record type of the album (e.g. EP, ALBUM, etc ...)

    releaseDate?: Date

    The release date of the album

    undefined for partial albums

    title: string

    The title of the album

    tracks: DeezerTrack[]

    The list of tracks in the album

    empty (length === 0) for partial albums

    Use DeezerAlbum.fetch to populate the tracks and other properties

    tracksCount: number

    The number of tracks in the album

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

    The type, always 'album', useful to determine what the deezer function returned

    upc?: string

    The universal product code of the album

    undefined for partial albums

    url: string

    The URL to the album on Deezer

    • Converts instances of this class to JSON data

      Returns {
          artist: DeezerArtist;
          available: boolean | undefined;
          contributors: DeezerArtist[] | undefined;
          cover: DeezerImage;
          durationInSec: number | undefined;
          explicit: boolean;
          genres: DeezerGenre[] | undefined;
          id: number;
          numberOfFans: number | undefined;
          recordType: string;
          releaseDate: Date | undefined;
          title: string;
          tracks: {
              album: DeezerTrackAlbum;
              artist: DeezerArtist;
              bpm: number | undefined;
              contributors: DeezerArtist[] | undefined;
              diskNumber: number | undefined;
              durationInSec: number;
              explicit: boolean;
              gain: number | undefined;
              id: number;
              previewURL: string;
              rank: number;
              releaseDate: Date | undefined;
              shortTitle: string;
              title: string;
              trackPosition: number | undefined;
              type: "playlist" | "track" | "album";
              url: string;
          }[];
          tracksCount: number;
          type: "playlist"
          | "track"
          | "album";
          upc: string | undefined;
          url: string;
      }

      JSON data.