Updated ReadME
This commit is contained in:
commit
43eb0f4d43
@ -55,7 +55,12 @@ 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.*
|
||||
<<<<<<< HEAD
|
||||
**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.**
|
||||
>>>>>>> 4487ef38a991af12fb1660bc7ffe3cf7418433ca
|
||||
```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, {
|
||||
@ -99,6 +104,8 @@ console.log(results[0].url);
|
||||
*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)
|
||||
```
|
||||
@ -106,6 +113,8 @@ const video = await video_basic_info(url)
|
||||
*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)
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user