From 67446fd49b447531720d62aa339fc364a1699e2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sergey=20M=E2=80=A4?= Date: Fri, 20 Nov 2015 04:07:39 +0600 Subject: [PATCH] [instagram] Improve _VALID_URL (Closes #7568) --- youtube_dl/extractor/instagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[^/?#&]+)' + _VALID_URL = r'https?://(?:www\.)?instagram\.com/p/(?P[^/?#&]+)' _TESTS = [{ 'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc', 'md5': '0d2da106a9d2631273e192b372806516', -- 2.22.2