[instagram:user] Improve _VALID_URL (Closes #7955)
authorSergey M․ <dstftw@gmail.com>
Wed, 23 Dec 2015 15:13:31 +0000 (21:13 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 23 Dec 2015 15:13:31 +0000 (21:13 +0600)
youtube_dl/extractor/instagram.py

index c158f206410467e8c66a8bc2526d0436cc1a4e3c..e5e16ca3b2aa15b64b253496e129cf7813468abe 100644 (file)
@@ -47,7 +47,7 @@ class InstagramIE(InfoExtractor):
 
 
 class InstagramUserIE(InfoExtractor):
-    _VALID_URL = r'https://instagram\.com/(?P<username>[^/]{2,})/?(?:$|[?#])'
+    _VALID_URL = r'https?://(?:www\.)?instagram\.com/(?P<username>[^/]{2,})/?(?:$|[?#])'
     IE_DESC = 'Instagram user profile'
     IE_NAME = 'instagram:user'
     _TEST = {