diff --git a/src/Pass/InstagramTransformPass.php b/src/Pass/InstagramTransformPass.php index 55c25cc4..2b67022f 100644 --- a/src/Pass/InstagramTransformPass.php +++ b/src/Pass/InstagramTransformPass.php @@ -151,9 +151,9 @@ protected function getShortcodeAndUrl(DOMQuery $el) foreach ($links as $link) { $href = $link->attr('href'); $matches = []; - if (preg_match('&(*UTF8)instagram.com/p/([^/]+)/?&i', $href, $matches)) { - if (!empty($matches[1])) { - $shortcode = $matches[1]; + if (preg_match('&(*UTF8)instagram.com/(p|tv)/([^/]+)/?&i', $href, $matches)) { + if (!empty($matches[2])) { + $shortcode = $matches[2]; $url = $href; break; }