projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[unistra] Fix extraction
[youtube-dl]
/
youtube_dl
/
extractor
/
instagram.py
diff --git
a/youtube_dl/extractor/instagram.py
b/youtube_dl/extractor/instagram.py
index fce179000786cfeacad39d9d65786aa9fea915b1..e5e16ca3b2aa15b64b253496e129cf7813468abe 100644
(file)
--- a/
youtube_dl/extractor/instagram.py
+++ b/
youtube_dl/extractor/instagram.py
@@
-10,7
+10,7
@@
from ..utils import (
class InstagramIE(InfoExtractor):
class InstagramIE(InfoExtractor):
- _VALID_URL = r'https
://
instagram\.com/p/(?P<id>[^/?#&]+)'
+ _VALID_URL = r'https
?://(?:www\.)?
instagram\.com/p/(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
'md5': '0d2da106a9d2631273e192b372806516',
_TESTS = [{
'url': 'https://instagram.com/p/aye83DjauH/?foo=bar#abc',
'md5': '0d2da106a9d2631273e192b372806516',
@@
-47,7
+47,7
@@
class InstagramIE(InfoExtractor):
class InstagramUserIE(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 = {
IE_DESC = 'Instagram user profile'
IE_NAME = 'instagram:user'
_TEST = {