aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-07-13 21:45:33 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-07-13 21:45:33 +0200
commitaa6b734e02b8c3dc8244a8cd8857e80c7c2953d6 (patch)
tree7a40994bc06f68d51e8f9dce15b6feac37c5174d /youtube_dl
parent73b57f0ccbae1506304237ef836e70763c23d38f (diff)
[instagram] really fix uploader_id detection (Fixes #1038)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/instagram.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py
index 49d770665..f9ac8d5b4 100644
--- a/youtube_dl/extractor/instagram.py
+++ b/youtube_dl/extractor/instagram.py
@@ -22,8 +22,9 @@ class InstagramIE(InfoExtractor):
r'<title>(.+?)</title>',
webpage, u'title', flags=re.DOTALL)
title = re.sub(u'(?: *\(Videos?\))? \u2022 Instagram$', '', html_title).strip()
- uploader_id = self._html_search_regex(r'<div class="media-user" id="media_user"><h2><a href="[^"]*">([^<]*)</a></h2>',
- webpage, u'uploader name', fatal=False)
+ uploader_id = self._html_search_regex(
+ r'<div class="media-user" id="media_user">.*?<h2><a href="[^"]*">([^<]*)</a></h2>',
+ webpage, u'uploader id', fatal=False, flags=re.DOTALL)
ext = 'mp4'
return [{