From 89d36ad0c6e06e1589f1d282681d6f031f12db74 Mon Sep 17 00:00:00 2001 From: killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 13 Aug 2021 15:01:22 +0530 Subject: [PATCH] ReadMe updated --- node-youtube-dl/YouTube/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/node-youtube-dl/YouTube/README.md b/node-youtube-dl/YouTube/README.md index 4314925..a785889 100644 --- a/node-youtube-dl/YouTube/README.md +++ b/node-youtube-dl/YouTube/README.md @@ -35,6 +35,7 @@ let playlist = await playlist_info(url) //This only fetches first 100 songs from *This fetches whole playlist.* ```js let playlist = await playlist_info(url) //This only fetches first 100 songs from a playlist + await playlist.fetch() // This one fetches all songs from a playlist. ``` #### 3. playlist.page(page_number : `number`) @@ -44,21 +45,27 @@ await playlist.fetch() // This one fetches all songs from a playlist. ```js let playlist = await playlist_info(url) //This only fetches first 100 songs from a playlist + await playlist.fetch() // This one fetches all songs from a playlist. + console.log(playlist.page(1)) // This displays first 100 songs of a playlist ``` #### 4. playlist.total_videos *This tells you total no of videos that have been fetched so far.* ```js let playlist = await playlist_info(url) //This only fetches first 100 songs from a playlist + await playlist.fetch() // This one fetches all songs from a playlist. + console.log(playlist.total_videos) // This displays total no. of videos fetched so far. ``` #### 5. playlist.videoCount *This tells total no. of songs in a playlist.* ```js let playlist = await playlist_info(url) //This only fetches first 100 songs from a playlist + await playlist.fetch() // This one fetches all songs from a playlist. + console.log(playlist.videoCount) // This displays total no. of videos in a playlist ```