Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to direct URL denied #19187

Closed
EddieEJ opened this issue Feb 10, 2019 · 5 comments
Closed

Access to direct URL denied #19187

EddieEJ opened this issue Feb 10, 2019 · 5 comments
Labels

Comments

@EddieEJ
Copy link

@EddieEJ EddieEJ commented Feb 10, 2019

When calling getInfo and obtaining all the links from formats, on some videos(not all) I do not have access to the direct video link. When trying to load the link into my browser, I simply get:
image

Has anyone encountered this issue and know how it can be fixed?

@EddieEJ
Copy link
Author

@EddieEJ EddieEJ commented Feb 10, 2019

@remitamine I have been using YouTube-dl in my application to obtain direct URLs of YouTube videos and allow users to view them in custom players (without downloading the actual video).

However, if the request is not made with the same IP address and cookies, and it is done automatically by Firebase Cloud Functions, what would be a workaround for this? How can I still generate a working URL and provide it to my user upon their custom request?

P.S. Do the URLs generated from getInfo have an expiration time? Are they going to work after a few days, months, etc ?

Any help would be appreciated!

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Feb 10, 2019

The server controls the requests that it can accept or refuse.

@EddieEJ
Copy link
Author

@EddieEJ EddieEJ commented Feb 10, 2019

So there is no way to send a request from Firebase Cloud Functions an URL specifically for that user and his machine/ip in order for the link to work for that user even though he does not have YouTube-DL?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Feb 10, 2019

i'm not familiar with Firebase Cloud Functions and you're refering to getInfo function/method which is not part of the youtube-dl code.
i can't say there is no way to workaround it as it depend on the website you're trying to download from, what i can say is that it's not a problem in youtube-dl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.