cyberboysumanjay / JioSaavnAPI

An unofficial API for JioSaavn written in Python 3
https://saavnapi-nine.vercel.app
MIT License
363 stars 182 forks source link

didn't get response #11

Closed Jaydeep-01 closed 4 years ago

Jaydeep-01 commented 4 years ago

there are some errors after you update your code

1)i didn't get response on this url http://127.0.0.1:5000/result/?query=https://www.jiosaavn.com/search/gulabo%20sitabo

as a response i get this { "error": "list index out of range", "status": true }

also some time get this error in cmd :

raise ConnectionError(e, request=request)requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.jiosaavn.com', port=443): Max retries exceeded with url: /album/meri-aashiqui/TbRMeOcOBwQ_ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001CC65162988>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

2)also not provide response for specific url like following http://127.0.0.1:5000/result/?query=https://www.jiosaavn.com/album/meri-aashiqui/TbRMeOcOBwQ_

as response { "error": "'NoneType' object is not subscriptable", "status": true }

3)didn't get response for this also http://127.0.0.1:5000/result/?query=https://www.jiosaavn.com/new-releases/hindi

as response { "error": "list index out of range", "status": true }

4)this kind of URLs take too much time to response like about 4 min http://127.0.0.1:5000/result/?query=https://www.jiosaavn.com/featured/hindi_chartbusters/u-75xwHI4ks_

5)not get response from this also http://127.0.0.1:5000/result/?query=https://www.jiosaavn.com/new-releases/hindi

as response { "error": "list index out of range", "status": true }

cyberboysumanjay commented 4 years ago

It's not the correct format for searching songs. If you want to search then simply enter the query instead of search URL

Example: http://127.0.0.1:5000/result/?query=gulabo%20sitabo

Try and close the issue if it works 😁

Jaydeep-01 commented 4 years ago

What about the rest

cyberboysumanjay commented 4 years ago

For song/album/playlist you can pass the links and get the results as usual

Example: http://127.0.0.1:5000/result/?query=https://www.jiosaavn.com/song/tum-hi-aana-from-marjaavaan/NCw-YiNJYms

That's why I recommend you to read README before using or deploying the API

Jaydeep-01 commented 4 years ago

Yes I already read README.

But please you read the issue carefully, I mention 5 specific urls with there responses and errors wich I get during run this api.

cyberboysumanjay commented 4 years ago

1) I already addressed 2) Is working fine in latest version of the API (Please check if you're using the same) 3) and 5) are not album or playlist URLs they are URL of the page containing these. 4) Is taking time because the API has to decrypted and check working links of the song. I'll improve it in updates using a different technique.

Jaydeep-01 commented 4 years ago

i also didn't get response from this.

so any suggestion for this

http://127.0.0.1:5000/result/?query=Vinod%20Khanna

image

cyberboysumanjay commented 4 years ago

It seems this issue is limited to your machine only. It worked on my server. Maybe a temporary internet issue or something like that.

Jaydeep-01 commented 4 years ago

ok this is same as you say, it's just stuck because of any other problem.

thank you.

check there if you can increase response speed.

cyberboysumanjay commented 4 years ago

I'll try to optimise it in the next update

Jaydeep-01 commented 4 years ago

as a response at a time i get only 5 results, so is there any way to increase the number of response?