-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Bug] Age Restricted Videos do not play #2189
Comments
Yeah, I’ve been facing the same issue. It seems like a recent problem. I don’t know if it’s related to what is going on at youtube-dl. But I couldn’t download using youtube-dl either, and I’m not in the E.U. nor do I have a Google account. |
Can someone post a couple of age-restricted videos here? (this is for testing purposes though) |
|
A 20$ bounty has been added to this issue. Anyone opening a PR fixing this issue, will receive 20$ (in BTC) from the Invidious project. More details: #1898 |
Note: the yt-dlp people found a way to get access to the video by (I think) using the mobile website's embed. However this only works with videos that can be embedded. Having this solution implemented is "enough" for you to get the bounty. Related: yt-dlp/yt-dlp@4e6767b |
Just add invidious/src/invidious/videos.cr Line 994 in 993d731
Note that this is a temporary fix and we expect it to break in the near future. See yt-dlp/yt-dlp#328 for some fallbacks |
The |
No. |
Yep. However, Invidious appends those headers by default as seen in here: invidious/src/invidious/helpers/utils.cr Lines 4 to 17 in 993d731
In order to get this fix to work, |
hm.. that is a problem. The header for all other requests should still be Is it not possible to send this request without the header? |
Nope. If we want to use the connection pool, all of those headers would get added no matter what. The only workaround for this is to set required_parameters = URI::Params.new({
"video_id" => [id],
"eurl" => ["https://youtube.googleapis.com/v/#{id}"],
"html5" => ["1"],
"c" => ["TVHTML5"],
"cver" => ["6.20180913"],
})
embed_info = HTTP::Params.parse(YT_POOL.client &.get("/get_video_info?#{required_parameters}", headers: HTTP::Headers{"x-youtube-client-version" => "6.20180913"}).body)
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Reopening as not every age restricted videos are unblocked. |
On Tue, Mar 29, 2022 at 01:00:24PM -0700, TheFrenchGhosty wrote:
Here's 4 SFW videos that are age restricted, for testing purpose:
there's a 4-tiered list of videos that's used to check agegate bypasses:
yt-dlp/yt-dlp#575 (comment)
|
Tiers 1,2 and 3 seems to work with the new method, which is great. |
Should this ticket be closed now that #2996 has been merged? Or is there still an issue? |
No because not all age restricted videos can be bypassed so this issue is not entirely fixed. |
tbh, It is doubtful this can ever can be fully fixed unless setting up an account proxy server is an acceptable option |
We have been talking about integrating that into invidious so it may come one day. |
Note: encrypted age-restricted videos don't work, see: #3245 Example video IDs: |
Non-working video ID, reported to me by e-mail: |
For me, I still have issues watching age restricted videos. Loading them are significantly more slowly (which greatly influences watching) than loading other videos. I can observe this for all videos listed in this comment. |
Known issue, it's tracked in #3245 |
This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked. |
Closing as there is no way to circumvent anymore. Logging into a google account will do but it's tracked in #4977 |
The age restriction bypass does not work anymore with this client. See: #2189 (comment) Related to 2189
Videos that have been marked age-restricted don't play
Any video with age-restriction doesn't work. All you can see is the thumbnail. I've tested this on all public instances.
Steps to reproduce the behavior:
Even the play button doesn't work
Additional context
The text was updated successfully, but these errors were encountered: