aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoru-spec-png <54671367+u-spec-png@users.noreply.github.com>2021-12-12 18:01:00 +0000
committerGitHub <noreply@github.com>2021-12-12 23:31:00 +0530
commit8b688881ba45ee7a34d45ad33b295adb871f8f5c (patch)
treec1e39ef7a5ff1548a242d04b122e96fed61be5cc
parent13debc86e72ac19820318c8cbd83a474a4e98fc7 (diff)
downloadhypervideo-pre-8b688881ba45ee7a34d45ad33b295adb871f8f5c.tar.lz
hypervideo-pre-8b688881ba45ee7a34d45ad33b295adb871f8f5c.tar.xz
hypervideo-pre-8b688881ba45ee7a34d45ad33b295adb871f8f5c.zip
[instagram] Expand valid URL (#1977)
Closes #1925 Authored by: u-spec-png
-rw-r--r--yt_dlp/extractor/instagram.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/instagram.py b/yt_dlp/extractor/instagram.py
index 2ec24f3e7..84c1daca6 100644
--- a/yt_dlp/extractor/instagram.py
+++ b/yt_dlp/extractor/instagram.py
@@ -170,7 +170,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|reel)/(?P<id>[^/?#&]+))'
_TESTS = [{
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
'md5': '0d2da106a9d2631273e192b372806516',
@@ -266,6 +266,9 @@ class InstagramIE(InstagramBaseIE):
}, {
'url': 'https://www.instagram.com/reel/CDUMkliABpa/',
'only_matching': True,
+ }, {
+ 'url': 'https://www.instagram.com/marvelskies.fc/reel/CWqAgUZgCku/',
+ 'only_matching': True,
}]
@staticmethod