Docs + search validate updated

This commit is contained in:
killer069
2021-10-09 18:59:16 +05:30
parent 6698a87983
commit f6a91254aa
6 changed files with 37 additions and 38 deletions

View File

@@ -17,7 +17,7 @@ const results = await youtube.search('post malone sunflower', options);
_This will validate url and return type or boolean_
**Returns :** `video` | `playlist` | `false`
**Returns :** `video` | `playlist` | `search` | `false`
```js
let check = yt_validate(url)
@@ -27,6 +27,8 @@ if(!check) // Invalid URL
if(check === "video") //URL is video url
if(check === "playlist") //URL is a playlist url
if(check === "search") // Given term is not a video ID and PlayList ID.
```
## Extract ID