mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Docs + search validate updated
This commit is contained in:
@@ -18,7 +18,7 @@ console.log(data.type) // Console logs the type of data that you got.
|
||||
|
||||
_This checks that given url is soundcloud url or not._
|
||||
|
||||
**Returns :** `track` | `playlist` | `false`
|
||||
**Returns :** `track` | `playlist` | `search` | `false`
|
||||
|
||||
```js
|
||||
let check = await so_validate(url)
|
||||
@@ -26,6 +26,8 @@ let check = await so_validate(url)
|
||||
if(!check) // Invalid SoundCloud URL
|
||||
|
||||
if(check === 'track') // SoundCloud Track URL
|
||||
|
||||
if(check === "search") // Given term is not a SoundCloud URL. Search this somewhere.
|
||||
```
|
||||
|
||||
## Classes [ Returned by `soundcloud(url)` function ]
|
||||
|
||||
Reference in New Issue
Block a user