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

Add "age restricted" label to age restricted YouTube videos #251

Merged
merged 3 commits into from
Dec 19, 2021

Conversation

zneix
Copy link
Collaborator

@zneix zneix commented Dec 18, 2021

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Shows a red AGE RESTRICTED label between Views and likes count for age restricted YouTube videos.

Reference:

NOTE: while go.dev link mentions ytUnspecified as a possible value, official API docs do not mention it (anymore?), so I didn't bother handling that.

Example of an age restricted video (safe for stream Clue): https://www.youtube.com/watch?v=SIM0e-R5y_g

@pajlada pajlada enabled auto-merge (squash) December 19, 2021 14:04
@pajlada pajlada merged commit 3a090cb into master Dec 19, 2021
@pajlada pajlada deleted the zneix/feature/youtube-age-restricted-videos branch December 19, 2021 14:09
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.

2 participants