diff --git a/lib/plugins/system/oembed/providers.json b/lib/plugins/system/oembed/providers.json index 66f2704f9..f65f7acf1 100644 --- a/lib/plugins/system/oembed/providers.json +++ b/lib/plugins/system/oembed/providers.json @@ -48,11 +48,18 @@ { "name": "Instagram", "templates": [ - "(?:www\\.)?(instagram\\.com/(?:p|tv|reel)/([a-zA-Z0-9_-]+))", + "(?:www\\.)?(instagram\\.com/(?:p|tv)/([a-zA-Z0-9_-]+))", "(instagr\\.am/p/([a-zA-Z0-9_-]+))" ], "endpoint": "https://graph.facebook.com/v24.0/instagram_oembed?format={format}&url=https://www.{1}/" }, + { + "name": "Instagram Reels", + "templates": [ + "(?:www\\.)?instagram\\.com/reels?/([a-zA-Z0-9_-]+)" + ], + "endpoint": "https://graph.facebook.com/v24.0/instagram_oembed?format={format}&url=https://www.instagram.com/reel/{1}/" + }, { "name": "Instagram user page", "templates": [ diff --git a/plugins/domains/instagram.com/instagram.com.js b/plugins/domains/instagram.com/instagram.com.js index 2b48310f1..b7edc5d76 100644 --- a/plugins/domains/instagram.com/instagram.com.js +++ b/plugins/domains/instagram.com/instagram.com.js @@ -8,7 +8,7 @@ export default { */ re: [ - /^https?:\/\/www\.instagram\.com\/(?:[a-zA-Z0-9_\-\.]+\/)?(?:p|tv|reel)\/([a-zA-Z0-9_-]+)\/?/i, + /^https?:\/\/www\.instagram\.com\/(?:[a-zA-Z0-9_\-\.]+\/)?(?:p|tv|reels?)\/([a-zA-Z0-9_-]+)\/?/i, /^https?:\/\/instagr\.am\/(?:[a-zA-Z0-9_\-\.]+\/)?p\/([a-zA-Z0-9_-]+)/i, /^https?:\/\/www\.instagram\.com\/(?:[a-zA-Z0-9_\-\.]+\/)?(?:p|tv)\/([a-zA-Z0-9_-]+)$/i ], @@ -151,6 +151,7 @@ export default { "https://www.instagram.com/p/a_v1-9gTHx/", "https://www.instagram.com/p/-111keHybD/", "https://www.instagram.com/nssmagazine/reel/CrVt-Wvs74O/", + "https://www.instagram.com/reels/DP6BIPTDXuc/", { skipMixins: ["oembed-title", "fb-error", "oembed-author"], skipMethods: ['getData']