aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-14 07:20:33 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-14 07:20:33 +0600
commita90189c3ad9bab0571121ecb70baea89ccac154e (patch)
tree0405fa8f2bab6bb258fc033375dc60d01d9c6d69
parentd8a1caf04f1733d7c94f213af25c587addcea35b (diff)
[instagram] Relax _VALID_URL (Closes #7497)
-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 3d78f78c4..ddcaf76d1 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>[\da-zA-Z]+)'
+ _VALID_URL = r'https://instagram\.com/p/(?P<id>[^/?#&]+)'
_TEST = {
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
'md5': '0d2da106a9d2631273e192b372806516',