Okay I think I have a fix here, we should use oEmbed for this stuff from YouTube instead:
https://github.com/discourse/discourse/pull/35959
I don’t think so, it seems like 2 things:
- Some sort of weird IP rate limiting/redirection, because sometimes for different sites on our hosting the OP link works
- 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:
