Domain restricted embed video
See original GitHub issueHello there, been using the module for a while and it’s awesome so far, but now I hit a wall with the following:
While trying to get a video with explicit content the module does a workaround with an embed url, that’s what I understand so far(please correct me if I’m wrong here) but then that video has a domain restriction so the embed strategy fails.
So I’m doing this(pretty normal)
ytdl.getInfo(url ...
: no error here, and I got the video itags info and everything elseytdl(url ...
:[Error: status code 403]
This is the video https://www.youtube.com/watch?v=B3eAMGXFw1o (awful song btw)
I tried some things like using Referer
in the headers(like here), but no luck.
As far as I could see the 403
happens in /videoplayback
request.
If is there any more info I can provide please say so.
Thanks for your time.
PS: I’m running latest version 0.7.13
and just happens with the video above, I had not tested it with a video with similar configuration. I ran mocha test
and all tests passed, just to see if I had some strange network setup
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
think i found a fix… at least worked for this one video all i did is i added
sts: '17186'
to the query params of the get_video_info url in https://github.com/fent/node-ytdl-core/blob/master/lib/info.js#L87 that variable can also be found in the yt.setConfig(Line10 for me) and also in the base.js(Line 6641 for me) hope it also works for u…should also fix https://github.com/fent/node-ytdl-core/issues/98 https://github.com/fent/node-ytdl-core/issues/83
It does work for me! O_O
Thank you very much!