-
Notifications
You must be signed in to change notification settings - Fork 0
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
Proper usage example #1
Comments
To be perfectly honest.. I haven't tried to download or watch any of the video URLs included in the response. Getting the library to work was my focus up to this point. Now that it does (appears to), the next thing I had in mind was to update my Youtube userscript.. which obtained its URLs using custom logic and hasn't been updated in a very long time. I figured I'd replace all of the custom logic with this library, which can be downloaded from a CDN. Stay tuned.. I'll probably play with it tonight.. and I'll let you know how it works. Of course, the example userscript taken verbatim just dumps the entire (huge) JSON response to the DOM.. so you could test each of the URLs by hand.. which is probably where I'm going to begin. |
Thanks, do update your findings. |
Shoot.. you're right.. all of the URLs return a 403 error. Seems to be related to this issue, which they apparently found a workaround for when running in a Node.js environment.. but my substitution of I'll need to read the commits that closed this issue to see what solution they found.. aside: I tested my old Youtube userscript to see if it still works at all.. and it behaves in the exact same way. It's still able to obtain URLs for all of the video resolutions, but they all return a 403 status. update:
|
Maybe this repo can give you some ideas - https://github.com/ybd-project-ver1/ytdl-core |
OK, so lets file this under serendipitous.. PR#111 was opened today, and it fixes the issue! I just pushed tag v4.14.4-distubejs.4 to npm, which includes this update to ytdl-core that hasn't yet been merged. To continue your testing, please update your userscript with:
or, optionally:
PS: I just tested your userscript, and it works great 😃 |
Hi,
I am using this example to test things out but the download is failing with HTTP Error 403, what am I missing here:
The text was updated successfully, but these errors were encountered: