YouTube playlist links are incorrectly oneboxed

AI-generated summary

YouTube Playlist Links Issue

A user, erlend_sh, reported an issue with YouTube playlist links being incorrectly oneboxed, resulting in the loss of the playlist suffix. sam brought this to the attention of techAPJ, who initially investigated the issue using lazyYT but found no practical solution.

techAPJ then implemented a workaround by switching to traditional iframe embeds for playlists, which should now render correctly. A commit was made to address this issue, and techAPJ tested the fix with a sample playlist link.

If I paste in this link:

https://www.youtube.com/watch?v=Nxc4AKz_lhQ&list=PLh1XHNREyQEPd-B4Dnlhg1ly7CHbbdW0f

It will be rendered thusly:

In other words, the link has been cut down to this:

https://www.youtube.com/watch?v=Nxc4AKz_lhQ

The playlist suffix is no longer present. Either these types of links should not be oneboxed, or they should be appropriately oneboxed as a playlist, as demonstrated by WordPress:

5개의 좋아요

@techAPJ can you have a look at this?

1개의 좋아요

Just a reminder, is this on the list @techapj?

Yes this was on my list and I looked into it few days back, but there was no practical way to do it using lazyYT.

So what I did now is switch to traditional iframe embed when user tries to embed playlist. It will now be rendered as playlist:


https://github.com/discourse/discourse/commit/076ed66e690bb9a8899103f75ce47560594d0bf0

4개의 좋아요

Let’s see if this playlist gets oneboxed as expected :cat:

4개의 좋아요