mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-30 12:22:48 +00:00
Spotify support added
This commit is contained in:
25
docs/README.md
Normal file
25
docs/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Play-dl commands
|
||||
|
||||
For source specific commands :-
|
||||
- [YouTube]()
|
||||
- [Spotify]()
|
||||
|
||||
### Validate
|
||||
|
||||
#### validate(url : `string`)
|
||||
*This checks all type of urls that are supported by play-dl.*
|
||||
|
||||
**Returns :** `sp_track` | `sp_album` | `sp_playlist` | `yt_video` | `yt_playlist` | `false`
|
||||
|
||||
sp = Spotify
|
||||
|
||||
yt = YouTube
|
||||
```js
|
||||
let check = validate(url)
|
||||
|
||||
if(!check) // Invalid URL
|
||||
|
||||
if(check === 'yt_video') // YouTube Video
|
||||
|
||||
if(check === 'sp_track') // Spotify Track
|
||||
```
|
||||
Reference in New Issue
Block a user