403 Error on video url after deploying on Heroku
coderkd10 opened this issue · comments
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?
You may have luck trying this: ytdl-org/youtube-dl#9001 (comment).
Thanks... its working!