Skip to content

Fix age-restricted videos breaking the watch page#8831

Merged
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:age-restricted-fix
Mar 19, 2026
Merged

Fix age-restricted videos breaking the watch page#8831
FreeTubeBot merged 1 commit intoFreeTubeApp:developmentfrom
absidue:age-restricted-fix

Conversation

@absidue
Copy link
Member

@absidue absidue commented Mar 18, 2026

Pull Request Type

  • Bugfix

Related issue

Mentioned in the Matrix FreeTube General chat

Description

YouTube made some changes to how the WEB_EMBEDDED_PLAYER client works, so it currently throws errors in FreeTube, which means that instead of showing the age-restricted message to the user, we show an empty page with an error message. As fixing the WEB_EMBEDDED_PLAYER support still requires some investigation and the workaround only works for a very small number of age-restricted videos anyway, this pull request currently only fixes the watch page breaking so that we show the user friendly message as originally intended but doesn't fix the WEB_EMBEDDED_PLAYER requests.

Screenshots

Before:
Before the change. Broken watch page with "This video is unavailable" message.

After:
After the change. Properly displayed watch page with the player replaced with a user friendly error message about the video being age-restricted.

Testing

  1. Open an age-restricted video e.g. Linus Torvalds NVIDIA rant: https://youtu.be/iYWzMvlj2RQ
  2. The player should be replaced with a message about the video being age-restricted, up next should be empty like on YouTube but all the other information should be shown (description, channel information, comments, etc).

Desktop

  • OS: Windows
  • OS Version: 11

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) March 18, 2026 22:09
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 18, 2026
Copy link
Member

@PikachuEXE PikachuEXE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL that video is age restricted on YT

@FreeTubeBot FreeTubeBot merged commit 36aec37 into FreeTubeApp:development Mar 19, 2026
6 checks passed
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Mar 19, 2026
@absidue absidue deleted the age-restricted-fix branch March 19, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants