[instagram] Relax _VALID_URL (Closes #7497)
authorSergey M․ <dstftw@gmail.com>
Sat, 14 Nov 2015 01:20:33 +0000 (07:20 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 14 Nov 2015 01:20:33 +0000 (07:20 +0600)
youtube_dl/extractor/instagram.py

index 3d78f78c46d1ad004339bc33ebcb09d1286e5092..ddcaf76d11ec5c5b7e2ef05fb76afd1b804391df 100644 (file)
@@ -10,7 +10,7 @@ from ..utils import (
 
 
 class InstagramIE(InfoExtractor):
-    _VALID_URL = r'https://instagram\.com/p/(?P<id>[\da-zA-Z]+)'
+    _VALID_URL = r'https://instagram\.com/p/(?P<id>[^/?#&]+)'
     _TEST = {
         'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
         'md5': '0d2da106a9d2631273e192b372806516',