]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[instagram] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sat, 25 Apr 2015 16:39:50 +0000 (22:39 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 25 Apr 2015 16:39:50 +0000 (22:39 +0600)
youtube_dl/extractor/instagram.py

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