From 8c3519f61db017552e0701350ba2fe16b8221895 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Thu, 2 Sep 2021 09:52:11 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f813a24..a4b1cbe 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,9 @@ if(validate(url) || validate_playlist(url)) // This will check both and if anyon # Stream -### stream(url : `string`) +### stream(url : `string`, cookie? : `string`) *This is basic to create a youtube stream from a url.* +**Cookies are optional and are required for playing age restricted videos.** ```js let source = await stream("url") // This will create a stream Class which contains type and stream to be played. let resource = createAudioResource(source.stream, { @@ -94,14 +95,16 @@ console.log(results[0].url); # Video -### video_basic_info(url : `string`) +### video_basic_info(url : `string`, cookie? : `string`) *The basic video details `play-dl` fetches at first.* +**Cookies are optional and are required for playing age restricted videos.** ```js const video = await video_basic_info(url) ``` -### video_info(url : `string`) +### video_info(url : `string`, cookie? : `string`) *This contains everything with deciphered formats along with `video_details`.* +**Cookies are optional and are required for playing age restricted videos.** ```js const video = await video_info(url) From 4487ef38a991af12fb1660bc7ffe3cf7418433ca Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Thu, 2 Sep 2021 10:23:46 +0530 Subject: [PATCH 2/2] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a4b1cbe..24b93d8 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,8 @@ if(validate(url) || validate_playlist(url)) // This will check both and if anyon ### stream(url : `string`, cookie? : `string`) *This is basic to create a youtube stream from a url.* -**Cookies are optional and are required for playing age restricted videos.** + +**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.** ```js let source = await stream("url") // This will create a stream Class which contains type and stream to be played. let resource = createAudioResource(source.stream, { @@ -97,14 +98,16 @@ console.log(results[0].url); ### video_basic_info(url : `string`, cookie? : `string`) *The basic video details `play-dl` fetches at first.* -**Cookies are optional and are required for playing age restricted videos.** + +**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.** ```js const video = await video_basic_info(url) ``` ### video_info(url : `string`, cookie? : `string`) *This contains everything with deciphered formats along with `video_details`.* -**Cookies are optional and are required for playing age restricted videos.** + +**[Cookies](https://github.com/play-dl/play-dl/discussions/34) are optional and are required for playing age restricted videos.** ```js const video = await video_info(url)