jaimeMF / youtube-dl-api-server

A youtube-dl REST API server
https://youtube-dl-api-server.readthedocs.org/
The Unlicense
364 stars 214 forks source link

403 Error on video url after deploying on Heroku #45

Closed coderkd10 closed 8 years ago

coderkd10 commented 8 years ago

I deployed the API Server on Heroku here. It is up and running. I am able to get the info dictionary of the video at /api/info but I cannot access the video-urls generated (I am getting a 403 Forbidden error). This is probabaly due to the IP constraint that extracting extracting link and downloading it must be done from the same IP.

Here is a example: Consider the video - https://www.youtube.com/watch?v=rYEDA3JcQqw Its info dictionary generated by the Heroku server is - https://youtube-dl-backend1.herokuapp.com/api/info?url=https://www.youtube.com/watch?v=rYEDA3JcQqw Link for the audio of the video is here, which is inaccessible and throws a 403 Forbidden status code.

I am curious is there any way to avoid this?

jaimeMF commented 8 years ago

You may have luck trying this: https://github.com/rg3/youtube-dl/issues/9001#issuecomment-201991818.

coderkd10 commented 8 years ago

Thanks... its working!