aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN/Ame <173015200+grqz@users.noreply.github.com>2024-12-02 03:16:50 +1300
committerGitHub <noreply@github.com>2024-12-01 14:16:50 +0000
commit360aed810ad85db950df586282d256516c98cd2d (patch)
treef143c139b9a928839a9e053bb8d2e44290173d4f
parent00dcde728635633eee969ad4d498b9f233c4a94e (diff)
[ie/instagram] Support `share` URLs (#11677)
Closes #11630 Authored by: grqz
-rw-r--r--yt_dlp/extractor/instagram.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/instagram.py b/yt_dlp/extractor/instagram.py
index dee8cb85d..55086d0b2 100644
--- a/yt_dlp/extractor/instagram.py
+++ b/yt_dlp/extractor/instagram.py
@@ -254,7 +254,7 @@ class InstagramIOSIE(InfoExtractor):
class InstagramIE(InstagramBaseIE):
- _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com(?:/[^/]+)?/(?:p|tv|reels?(?!/audio/))/(?P<id>[^/?#&]+))'
+ _VALID_URL = r'(?P<url>https?://(?:www\.)?instagram\.com(?:/(?!share/)[^/?#]+)?/(?: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',