Skip to content

Channels: parse pronouns and display them on channel page#5617

Merged
Fijxu merged 1 commit intoiv-org:masterfrom
radmorecameron:parse-pronouns
Feb 5, 2026
Merged

Channels: parse pronouns and display them on channel page#5617
Fijxu merged 1 commit intoiv-org:masterfrom
radmorecameron:parse-pronouns

Conversation

@radmorecameron
Copy link
Contributor

This PR parses and displays channel pronouns.

Testing:

Channel with pronouns:

1- Go to {INVIDIOUS INSTANCE}/api/v1/channels/UCw-aR42z5gUcarpPGN5OKfA
2 - see pronoun field below channel name
image

1 - Go to {INVIDIOUS INSTANCE}/channel/UCw-aR42z5gUcarpPGN5OKfA
2- See pronoun field
image

Channel with no prouns

1 - Go to {INVIDIOUS INSTANCE}/channel/UCX6OQ3DkcsbYNE6H8uQQuVA
2 - Don't see pronouns
image

1 - Go to {INVIDIOUS INSTANCE}/api/v1/channels/UCX6OQ3DkcsbYNE6H8uQQuVA
2 - see empty pronouns
image

@Fijxu
Copy link
Member

Fijxu commented Feb 3, 2026

Thanks! I'll take a look at it later.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for parsing creator pronouns from YouTube channel metadata, exposing them via the API and rendering them on the channel page.

Changes:

  • Extend AboutChannel to include an optional pronouns field and populate it in get_about_info by parsing channel metadata rows.
  • Expose pronouns in the /api/v1/channels/:id JSON response.
  • Update the channel header component and CSS to display pronouns beneath the channel name with appropriate styling.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/invidious/views/components/channel_info.ecr Wraps the channel name in a new container and conditionally displays pronouns beneath it in the channel header.
src/invidious/routes/api/v1/channels.cr Adds the pronouns field to the channel API response payload.
src/invidious/channels/about.cr Extends AboutChannel with a pronouns field and parses pronoun data from the channel metadata rows.
assets/css/default.css Adds styles for the new channel name/pronouns container and pronoun text appearance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Fijxu Fijxu linked an issue Feb 3, 2026 that may be closed by this pull request
@radmorecameron radmorecameron force-pushed the parse-pronouns branch 2 times, most recently from 75dffbf to 0bc8cb1 Compare February 3, 2026 21:40
Copy link
Member

@Fijxu Fijxu left a comment

Choose a reason for hiding this comment

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

Works fine, Thanks for your contribution!

Fijxu added a commit to iv-org/documentation that referenced this pull request Feb 3, 2026
@Fijxu Fijxu requested a review from unixfox February 5, 2026 00:07
Fijxu added a commit to iv-org/documentation that referenced this pull request Feb 5, 2026
@Fijxu Fijxu merged commit 864893f into iv-org:master Feb 5, 2026
9 checks passed
Fijxu added a commit to Fijxu/invidious that referenced this pull request Feb 20, 2026
It also fixes some inconsistencies with the CSS and HTML that was
introduced in iv-org#5617 but I didn't
really noticed about because it looked fine in the Invidious frontend.

I also added a comment about the `break` statement in the metadata_rows
row iteration because I didn't get why that `break` was there.

Closes iv-org#5638
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.

[Feature request] Show channel pronouns on channel page

4 participants