aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-20 04:07:39 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-20 04:07:39 +0600
commit67446fd49b447531720d62aa339fc364a1699e2b (patch)
treea60c85b0f8bc81c1795dacb9d0e37be6d8dbaf7e /youtube_dl/extractor
parent325bb615a79928541aabfbab366ef813b4f72309 (diff)
[instagram] Improve _VALID_URL (Closes #7568)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/instagram.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py
index fce179000..c158f2064 100644
--- a/youtube_dl/extractor/instagram.py
+++ b/youtube_dl/extractor/instagram.py
@@ -10,7 +10,7 @@ from ..utils import (
class InstagramIE(InfoExtractor):
- _VALID_URL = r'https://instagram\.com/p/(?P<id>[^/?#&]+)'
+ _VALID_URL = r'https?://(?:www\.)?instagram\.com/p/(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
'md5': '0d2da106a9d2631273e192b372806516',