Skip to content

embeds: support all youtube videos/urls, eliminate dependency on noembed, some other cleanup #4638

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

Merged

Conversation

patosullivan
Copy link
Member

OTT, fixes tlon-3821

try using a youtu.be url, a https://youtube.com/shorts/ url, or a /embed url.

Moved trustedProviders into the embed module in shared, made the is checks for each provider use it, and added an isYouTube check so we don't have to rely on noembed at all anymore.

Copy link

linear bot commented Apr 8, 2025

@patosullivan patosullivan force-pushed the po/tlon-3821-fix-youtube-embed-link-parsing-issue branch from b9bb09c to 393db60 Compare April 8, 2025 18:05
@jamesacklin
Copy link
Member

Cool, makes perfect sense to me.

Is there a way to include the URL below the embedded video just in case the uploader prohibits playing from embeds or something else doesn't work? It's nice to be able to click through even if the in-app embed doesn't work for whatever reason.

Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

lgtm

@patosullivan patosullivan merged commit b5c2b9e into develop Apr 9, 2025
1 check passed
@patosullivan patosullivan deleted the po/tlon-3821-fix-youtube-embed-link-parsing-issue branch April 9, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants