Skip to content

Commit

Permalink
[ie/instagram] Support share URLs (yt-dlp#11677)
Browse files Browse the repository at this point in the history
Closes yt-dlp#11630
Authored by: grqz
  • Loading branch information
grqz authored Dec 1, 2024
1 parent 00dcde7 commit 360aed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/instagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def _real_extract(self, url):


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',
Expand Down

0 comments on commit 360aed8

Please sign in to comment.