this post was submitted on 19 Dec 2024
69 points (98.6% liked)

Fediverse

28726 readers
276 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 2 years ago
MODERATORS
 

If you go to !videos@lemmy.world and scroll you'll see some of the posts have a youtube thumbnail image, but not all.

I wanna post YouTube videos, but no one seems to engage much without a thumbnail, which makes sense, but I'm not sure what would result in the post actually having a thumbnail

If anyone has advice or guidance I'd appreciate it :) Thanks!

EDIT: so far it seems like it's potentially a combination of what version of lemmy the posters account is running, and how that instance is configured...

you are viewing a single comment's thread
view the rest of the comments
[–] hono4kami@slrpnk.net 3 points 6 days ago* (last edited 6 days ago) (1 children)

Also, this is a good tip in general:

You can't fetch title and thumbnail for YouTube links that starts with youtu.be. This applies not only in Lemmy, but other websites too, for example Twitter (even before Elon's era).

This is, IMO due to the link doesn't really contain HTML and OpenGraph metadata. It only redirects you. If you try cURL-ing the youtu.be link, you will see that it doesn't have a response body, only some header including Location header that will tell you where to redirect. The response code itself is 301.

[–] Cris_Color@lemmy.world 2 points 6 days ago (1 children)

There are people on shitjustworks posting youtu.be links on !videos@lemmy.world that do have thumbnails, so whatever they're doing doesn't seem to have that problem

My .ee account has a field to put in a thumbnail URL, so other comments in this thread are kinda leading me to believe it may be a combination of instance version, and how the instance is configured

[–] hono4kami@slrpnk.net 3 points 6 days ago (1 children)

My Lemmy instance actually can't fetch YouTube thumbnail, so I actually have to put it manually lol.

See http://www.get-youtube-thumbnail.com/

[–] Cris_Color@lemmy.world 2 points 6 days ago

Thats a super helpful site, thank you! If nothing else now I can remake my post from my .ee account and add the thumbnail manually