Closed phonoman closed 2 months ago
Currently, the YouTube short provided share link https://youtube.com/shorts/<id> does not fit any of the oembed scheme patterns.
https://youtube.com/shorts/<id>
- schemes: - https://*.youtube.com/watch* - https://*.youtube.com/v/* - https://youtu.be/* - https://*.youtube.com/playlist?list=* - https://youtube.com/playlist?list=* - https://*.youtube.com/shorts* - https://*.youtube.com/embed/*
There's only a pattern for www variant, which is not YouTube default behaviour.
www
I'm coming from Drupal where this causes the error "No matching provider found." since there are no endpoint/scheme hits.
Add pattern to scheme list
- https://youtube.com/shorts*
EDIT: Later realised I could've just opened a PR instead (https://github.com/iamcal/oembed/pull/760).
Issue:
Currently, the YouTube short provided share link![image](https://github.com/iamcal/oembed/assets/25151555/803eef4a-0136-4680-b8f4-32fa7220c561)
https://youtube.com/shorts/<id>
does not fit any of the oembed scheme patterns.There's only a pattern for
www
variant, which is not YouTube default behaviour.Background:
I'm coming from Drupal where this causes the error "No matching provider found." since there are no endpoint/scheme hits.
Solution:
Add pattern to scheme list
EDIT: Later realised I could've just opened a PR instead (https://github.com/iamcal/oembed/pull/760).