mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Pretty Code + Music property added in YouTube Video
This commit is contained in:
@@ -493,18 +493,18 @@ export class DeezerAlbum {
|
||||
}
|
||||
/**
|
||||
* Fetches all the tracks in the album and returns them
|
||||
*
|
||||
*
|
||||
* ```ts
|
||||
* const album = await play.deezer('album url')
|
||||
*
|
||||
*
|
||||
* const tracks = await album.all_tracks()
|
||||
* ```
|
||||
* @returns An array of {@link DeezerTrack}
|
||||
*/
|
||||
async all_tracks(): Promise<DeezerTrack[]> {
|
||||
await this.fetch()
|
||||
async all_tracks(): Promise<DeezerTrack[]> {
|
||||
await this.fetch();
|
||||
|
||||
return this.tracks as DeezerTrack[]
|
||||
return this.tracks as DeezerTrack[];
|
||||
}
|
||||
/**
|
||||
* Converts instances of this class to JSON data
|
||||
@@ -763,18 +763,18 @@ export class DeezerPlaylist {
|
||||
}
|
||||
/**
|
||||
* Fetches all the tracks in the playlist and returns them
|
||||
*
|
||||
*
|
||||
* ```ts
|
||||
* const playlist = await play.deezer('playlist url')
|
||||
*
|
||||
*
|
||||
* const tracks = await playlist.all_tracks()
|
||||
* ```
|
||||
* @returns An array of {@link DeezerTrack}
|
||||
*/
|
||||
async all_tracks(): Promise<DeezerTrack[]> {
|
||||
await this.fetch()
|
||||
async all_tracks(): Promise<DeezerTrack[]> {
|
||||
await this.fetch();
|
||||
|
||||
return this.tracks as DeezerTrack[]
|
||||
return this.tracks as DeezerTrack[];
|
||||
}
|
||||
/**
|
||||
* Converts instances of this class to JSON data
|
||||
|
||||
Reference in New Issue
Block a user