Update README.md
This commit is contained in:
parent
10bd5a5310
commit
4ddba57cd1
@ -70,14 +70,12 @@ console.log(playlist.videoCount) // This displays total no. of videos in a playl
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Search Command Usage :-
|
## Search Command Usage :-
|
||||||
### 1. search(url : `string`, options? : [SearchOptions](https://github.com/node-youtube-dl/node-youtube-dl/tree/Killer/node-youtube-dl/YouTube#searchoptions))
|
### 1. search(url : `string`, options? : [SearchOptions](https://github.com/play-dl/play-dl/tree/main/play-dl/YouTube#searchoptions))
|
||||||
*This enables all searching mechanism (video, channel, playlist)*
|
*This enables all searching mechanism (video, channel, playlist)*
|
||||||
```js
|
```js
|
||||||
let result = await search('Rick Roll')
|
let result = await search('Rick Roll')
|
||||||
console.log(result[0].url)
|
console.log(result[0].url)
|
||||||
```
|
```
|
||||||
### SearchOptions
|
### SearchOptions
|
||||||
```
|
- Type : `video` | `channel` | `playlist`
|
||||||
type?: "video" | "playlist" | "channel" | "all";
|
- Limit : `number`
|
||||||
limit?: number;
|
|
||||||
```
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user