Instagram has added a new video post type that doesn't use the instagram.com/p/[code] URL pattern:
https://www.instagram.com/tv/B_NzlSVBBLj/
The regular expressions that validate the post URL need to be updated to reflect this:
public static $validationRegexp = [
'@((http|https):){0,1}//(www\.){0,1}instagram\.com/p/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
'@((http|https):){0,1}//(www\.){0,1}instagr\.am/p/(?<shortcode>[a-z0-9_-]+)@i' => 'shortcode',
];
I took the liberty of creating a small patch file for version 8.x-1.x, but the same issue affects 8.x-2.x as well.
Comments
Comment #2
damienmckennaComment #3
damienmckennaThis adds the "tv" URLs rather than fixing something, so I think it should be noted as a feature request.
Comment #4
damienmckennaFYI I added the test coverage change to #3135594: Support for "TV" Instagram posts embed (8.x-2.x) for the 8.x-2.x branch, hopefully one of the maintainers will review it and commit your change.
Comment #5
chr.fritsch1.x is unsupported and this already works for 3.x. So, closing.