From 03f1d9a2d5478c8979f27c0d4fb7ab81e999619c Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Thu, 9 Sep 2021 16:19:15 +0530 Subject: [PATCH] Update README.md --- docs/Spotify/README.md | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/docs/Spotify/README.md b/docs/Spotify/README.md index 459ad08..2602a88 100644 --- a/docs/Spotify/README.md +++ b/docs/Spotify/README.md @@ -78,6 +78,7 @@ let data = await spotify(playlist_url) console.log(data.page(1)) //This will give first 100 tracks in playlist. ``` - total_pages `property` + *This give total pages that have been fetched so far.* ```js let data = await spotify(playlist_url) @@ -89,12 +90,13 @@ console.log(data.page(1)) //This will give first 100 tracks in playlist. } ``` - total_tracks `property` - *This give total videos that have been fetched so far.* - ```js - let data = await spotify(playlist_url) + + *This give total videos that have been fetched so far.* + ```js + let data = await spotify(playlist_url) - console.log(data.total_tracks) // This will tell no. of videos that have been fetched so far. - ``` + console.log(data.total_tracks) // This will tell no. of videos that have been fetched so far. + ``` ##### type `property` *This will always return as "playlist" for this class.* @@ -133,23 +135,25 @@ let data = await spotify(playlist_url) console.log(data.page(1)) //This will give first 100 tracks in playlist. ``` - total_pages `property` + *This give total pages that have been fetched so far.* ```js let data = await spotify(playlist_url) - console.log(data.total_pages) + console.log(data.total_pages) // This will tell no. of pages that have been fetched so far. for(let i = 1; i <= data.total_pages; i++){ queue.push(data.page(i)) //This will push all tracks to your queue system } ``` - total_tracks `property` - *This give total videos that have been fetched so far.* - ```js - let data = await spotify(playlist_url) + + *This give total videos that have been fetched so far.* + ```js + let data = await spotify(playlist_url) - console.log(data.total_tracks) - ``` + console.log(data.total_tracks) // This will tell no. of videos that have been fetched so far. + ``` ##### type `property` *This will always return as "album" for this class.*