Canapin
(Coin-coin le Canapin)
February 28, 2022, 11:21pm
1
I tried on multiple forums I host, and here’s the result each time:
However, it works on try.discourse and meta:
Example playlist link: https://www.youtube.com/playlist?list=OLAK5uy_kzSjyMWjRrEdqpP9x8HOq1MFcrItGQFWw
I have no JS error message, Discourse 2.9.0.beta2, tried in safe mode , and there is nothing in the error logs.
So I guess it may be related to a site setting, but which one?
Moin
March 1, 2022, 7:04am
2
Maybe it’s because of the server location?
When you are trying to one-box a youtube URL, Youtube automatically redirects to a page named consent.youtube.com . This page doesn’t have an oEmbed/OpenGraph tag, so oneboxing is unfortunately failing.
[Screenshot 2021-04-01 at 18.42.07]
This is definitely not Discourse’s flaw, but has to do with a (as it seems) breaking change on Youtube’s end. I suspect this happens due to some new Europe regulation, because I can’t reproduce on meta.
Our server is in Europe (Germany) and you can see the re…
The solution in that topic works only for videos, not for playlists and channels. So for these oneboxing doesn’t work anymore.
You can try to delete the “www” like it is described here Youtube embeddings have stopped working for servers in Europe - #14 by Iceman
2 Likes
That worked for me using the example playlist above. Previous tests gave me the same broken image result, but removing the www worked a treat:
Moin
March 1, 2022, 7:58am
4
Does that help for channels too?
I’m not that hot on YouTube links, but copying a channel playlist seems to work fine with www (and the m ones for mobile). I may be grabbing the wrong links though. Have you got an example one I could try for consistency?
Moin
March 1, 2022, 8:27am
6
https://youtube.com/channel/UCqd1aV6gTudT5TY8YVzK2Dg
Welcome to our little nest box situated on the outskirts of Loughborough, UK. The aim is to stream live, 24/7 and we'll add edited highlight videos along the way as we follow our birds journey from establishing their nest to fledging their...
I cannot get that one to work (featured link or regular onebox).
Ed_S
(Ed S)
June 5, 2022, 2:06pm
8
I’m seeing the same, in that www.youtube links to playlists fail in their onebox whereas removing the www makes it work. My digitalocean server is in London. The same is true for my Hetzner server in Germany.
Both of the types of links onebox OK on this server (meta.discourse).
So it does look like a Europe thing.
https://www.youtube.com/playlist?list=PLWVQAe9fXZolICdfMjY4MNdYdMgTOx5QT
https://youtube.com/playlist?list=PLWVQAe9fXZolICdfMjY4MNdYdMgTOx5QT