[instagram] Add support for reel URLs (closes #26234, closes #26250)
authorSergey M․ <dstftw@gmail.com>
Sat, 26 Dec 2020 15:50:58 +0000 (22:50 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 26 Dec 2020 16:00:15 +0000 (23:00 +0700)
youtube_dl/extractor/instagram.py

index c1526f8653e2c4c6031df6618b420cb1a5333b79..e15508fca533262eb693ae42c3b8e9a114ccfe52 100644 (file)
@@ -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