projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f54bab4
)
[instagram] Modernize
author
Sergey M․
<dstftw@gmail.com>
Sat, 25 Apr 2015 16:42:15 +0000
(22:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 25 Apr 2015 16:42:15 +0000
(22:42 +0600)
youtube_dl/extractor/instagram.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/instagram.py
b/youtube_dl/extractor/instagram.py
index d219ceb55a9adf64f4d3bada956bfecb495fe6e8..65f6ca103973bb25c016ae92fcb551c65def31d1 100644
(file)
--- a/
youtube_dl/extractor/instagram.py
+++ b/
youtube_dl/extractor/instagram.py
@@
-3,9
+3,7
@@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
-from ..utils import (
- int_or_none,
-)
+from ..utils import int_or_none
class InstagramIE(InfoExtractor):
@@
-23,8
+21,8
@@
class InstagramIE(InfoExtractor):
}
def _real_extract(self, url):
-
mobj = re.match(self._VALID_URL,
url)
- video_id = mobj.group('id')
+
video_id = self._match_id(
url)
+
webpage = self._download_webpage(url, video_id)
uploader_id = self._search_regex(r'"owner":{"username":"(.+?)"',
webpage, 'uploader id', fatal=False)