sumitkolhe / jiosaavn-api

🎵 An Unofficial API for downloading high-quality songs from JioSaavn
https://saavn.dev
MIT License
256 stars 116 forks source link

Fixed songID #1

Closed tuhinkantipal closed 3 years ago

tuhinkantipal commented 3 years ago

Previously: var songID = response.data .split('"song":{"type":"')[1] .split('","image":')[0] .split('"')[4];

Now: var songID = response.data .split('"song":{"type":"')[1] .split('","image":')[0] .split('"')[8];

tuhinkantipal commented 3 years ago

Btw all time you will not get song id from .split('"song":{"type":"')[1] .split('","image":')[0] .split('"')[8]; you have to check its pid also . here is a referance code for you https://github.com/cachecleanerjeet/jiosaavnapi/blob/dfbce23c419112991bce905a13834a8546efc8ae/index.js#L189