Options
All
  • Public
  • Public/Protected
  • All
Menu

play-dl

Index

Type aliases

Deezer

Shared type for Deezer tracks, playlists and albums

SoundCloud

Type of SoundCloud

SoundCloudStream

SoundCloudStream: <internal>.Stream

Type for SoundCloud Stream

Spotify

type for Spotify Class

YouTube

Type for YouTube returns

YouTubeStream

YouTubeStream: <internal>.Stream | LiveStream

Type for YouTube Stream

Functions

attachListeners

authorization

  • authorization(): void

cookieHeaders

  • cookieHeaders(headCookie: string[]): void

decipher_info

deezer

dz_advanced_track_search

  • Searches Deezer for tracks using the specified metadata.

    Parameters

    • options: DeezerAdvancedSearchOptions

      The metadata and limit for the search

      • limit?: The maximum number of results to return, maximum 100, defaults to 10.
      • artist?: The name of the artist
      • album?: The title of the album
      • title?: The title of the track
      • label?: The label that released the track
      • minDurationInSec?: The minimum duration in seconds
      • maxDurationInSec?: The maximum duration in seconds
      • minBpm?: The minimum BPM
      • maxBpm?: The minimum BPM

    Returns <internal>.Promise<DeezerTrack[]>

    An array of tracks matching the metadata

dz_validate

  • dz_validate(url: string): <internal>.Promise<"track" | "playlist" | "album" | "search" | false>
  • Validates a Deezer URL

    Parameters

    • url: string

      The URL to validate

    Returns <internal>.Promise<"track" | "playlist" | "album" | "search" | false>

    The type of the URL either 'track', 'playlist', 'album', 'search' or false. false means that the provided URL was a wrongly formatted or unsupported Deezer URL.

extractID

  • extractID(url: string): string

getFreeClientID

is_expired

  • is_expired(): boolean

playlist_info

refreshToken

search

setToken

so_validate

  • so_validate(url: string): <internal>.Promise<false | "track" | "playlist" | "search">

soundcloud

sp_validate

  • sp_validate(url: string): "track" | "playlist" | "album" | "search" | false
  • Function to validate Spotify url

    Parameters

    • url: string

      url for validation

    Returns "track" | "playlist" | "album" | "search" | false

    type of url or false.

spotify

stream

stream_from_info

validate

  • validate(url: string): <internal>.Promise<"so_playlist" | "so_track" | "sp_track" | "sp_album" | "sp_playlist" | "dz_track" | "dz_playlist" | "dz_album" | "yt_video" | "yt_playlist" | "search" | false>
  • Command to validate the provided url. It checks whether it supports play-dl or not.

    Parameters

    • url: string

      url to validate

    Returns <internal>.Promise<"so_playlist" | "so_track" | "sp_track" | "sp_album" | "sp_playlist" | "dz_track" | "dz_playlist" | "dz_album" | "yt_video" | "yt_playlist" | "search" | false>

    On failure, returns false else type of url.

video_basic_info

video_info

yt_validate

  • yt_validate(url: string): "playlist" | "video" | "search" | false
  • Command to validate a YouTube url

    Parameters

    • url: string

      Url for validation

    Returns "playlist" | "video" | "search" | false

    type of url or false.

Generated using TypeDoc