Youtube Links Sent by Bots are Not Producing a Playable Video Embed

(#4387) Bug Closed: Answered embeds

Reproduction steps

Make a bot send a youtu.be link, in my case, i'm using a bridge bot, that bridges messages from discord to fluxer.

Expected behaviour

The embed will have a clickable, playable video.

Actual behaviour

  1. The embed wont have a playable video.
  2. The embed will display Channel, Thumbnail, Title and Description in a different layout.

Platform

Windows

  1. Hampus changed the status from Needs triage to Answered

1 comment

Sign in with Fluxer to comment and vote.
Comment by Hampus
HampusStaff 2 votes
Fluxer handles this the same way Discord does, and the fix should go in the bridge. When a link has been previewed recently (within about 30 minutes), the platform adds the YouTube preview the moment the message is sent. Your bridge then copies that preview over as a bot embed. Bots can't send playable video embeds on Fluxer or Discord, so the copy turns into a plain card. Since the message already has an embed, the receiving side doesn't make its own preview either. I tested this on Discord too: sending a link with a copied video embed gives the same plain card there. When the link hasn't been previewed recently, the preview is added a moment after the message is sent. The bridge forwards only the bare link, so the other side makes its own playable preview. That's why the Fluxer to Discord direction worked for you. A fresh link, for example one with a random ?x=123 added, should break the same way going to Discord. The fix is for the bridge to skip embeds that aren't rich and forward only the link. Then each side makes its own playable preview.