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

24
docs/Spotify/README.md Normal file
View File

@@ -0,0 +1,24 @@
# Spotify
## Validate
### sp_validate(url : `string`)
*This checks that given url is spotify url or not.*
**Returns :** `track` | `album` | `playlist` | `false`
```js
let check = sp_validate(url)
if(!check) // Invalid Spotify URL
if(check === 'track') // Spotify Track URL
```
## Main
### spotify(url : `string`)
*This returns data from a track | playlist | album url.*
```js
let data = spotify(url) //Gets the data
console.log(data.type) // Console logs the type of data that you got.
```