]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[instagram] really fix uploader_id detection (Fixes #1038)
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Jul 2013 19:45:33 +0000 (21:45 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 13 Jul 2013 19:45:33 +0000 (21:45 +0200)
youtube_dl/extractor/instagram.py

index 49d770665333484e6918cfd6134f1bb2be7667c6..f9ac8d5b45b72764a441cc2d520841414b742f55 100644 (file)
@@ -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 [{