diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-12-26 22:50:58 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-12-26 23:00:15 +0700 |
commit | 46cffb0c47bf57b7aba45916bae6cb4092965686 (patch) | |
tree | 9576d99cad3605ab8fb4d4ab18e12474a5959b86 | |
parent | c32a059f52ccb76703785dccdd91ae9ce947a824 (diff) |
[instagram] Add support for reel URLs (closes #26234, closes #26250)
-rw-r--r-- | youtube_dl/extractor/instagram.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py index c1526f865..e15508fca 100644 --- a/youtube_dl/extractor/instagram.py +++ b/youtube_dl/extractor/instagram.py @@ -22,7 +22,7 @@ from ..utils import ( class InstagramIE(InfoExtractor): - _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/(?:p|tv)/(?P<id>[^/?#&]+))' + _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com/(?:p|tv|reel)/(?P<id>[^/?#&]+))' _TESTS = [{ 'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc', 'md5': '0d2da106a9d2631273e192b372806516', @@ -95,6 +95,9 @@ class InstagramIE(InfoExtractor): }, { 'url': 'https://www.instagram.com/tv/aye83DjauH/', 'only_matching': True, + }, { + 'url': 'https://www.instagram.com/reel/CDUMkliABpa/', + 'only_matching': True, }] @staticmethod |