Spotify support added

This commit is contained in:
killer069
2021-09-05 18:50:57 +05:30
parent 2a84dceda6
commit 4179557fde
14 changed files with 609 additions and 203 deletions

25
docs/README.md Normal file
View 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
```