YouTube URIs fail to render thumbnails when oneboxed

Okay I think I have a fix here, we should use oEmbed for this stuff from YouTube instead:

I don’t think so, it seems like 2 things:

  1. Some sort of weird IP rate limiting/redirection, because sometimes for different sites on our hosting the OP link works
  2. This code no longer working, because the JSON that we expect is no longer there discourse/lib/onebox/engine/youtube_onebox.rb at e144ec07c8c17ad0f73427524bccc10c074d5a19 · discourse/discourse · GitHub

Overall the oEmbed URL seems safer, for the OP video it’s https://www.youtube.com/oembed?url=https://youtube.com/shorts/Cs3sTnLO6EE&format=json and you get this kind of response:

2 Likes