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:
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?
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
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:
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?
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).
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.