A feature-rich command-line audio/video downloader
[ie/Instagram] Support `/reels/` URLs (#9539)
Amir Y. Perehodnik06cb0638392b
diff --git a/yt_dlp/extractor/instagram.py b/yt_dlp/extractor/instagram.pyindex f7f21505ea..46f9cd681b 100644--- a/yt_dlp/extractor/instagram.py+++ b/yt_dlp/extractor/instagram.py@@ -255,7 +255,7 @@ class InstagramIOSIE(InfoExtractor):class InstagramIE(InstagramBaseIE):- _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com(?:/[^/]+)?/(?:p|tv|reel)/(?P<id>[^/?#&]+))'+ _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com(?:/[^/]+)?/(?:p|tv|reels?(?!/audio/))/(?P<id>[^/?#&]+))'_EMBED_REGEX = [r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?instagram\.com/p/[^/]+/embed.*?)\1']_TESTS = [{'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',@@ -379,6 +379,9 @@ class InstagramIE(InstagramBaseIE):}, {'url': 'https://www.instagram.com/marvelskies.fc/reel/CWqAgUZgCku/','only_matching': True,+ }, {+ 'url': 'https://www.instagram.com/reels/Cop84x6u7CP/',+ 'only_matching': True,}]@classmethod