Youtube "short" videos type embedding/oneboxing not working

I’ve done it though I might have messed up a bit my pull request because for some reason, I’m still not used to GitHub… I really need to read the manual (and, a friend tells me, to create branches from my Discourse fork…). :upside_down_face:

Just for information, I just edited the file lib\onebox\engine\youtube_onebox.rb to add

# https://www.youtube.com/shorts/wi2jAtpBl0Y
if uri.path["/shorts/"]
  id ||= uri.path[/\/shorts\/([\w\-]+)/, 1]
end
1 Like