[vine] Fix uploader extraction
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 23 Feb 2014 11:08:30 +0000 (12:08 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 23 Feb 2014 11:08:30 +0000 (12:08 +0100)
youtube_dl/extractor/vine.py

index e14ff91d44b80b6d6278faece8453b856c39485e..a919129a67ae7cd73821a56485c4c879827d223f 100644 (file)
@@ -30,8 +30,9 @@ class VineIE(InfoExtractor):
         video_url = self._html_search_meta('twitter:player:stream', webpage,
             'video URL')
 
-        uploader = self._html_search_regex(r'<p class="username">(.*?)</p>',
-            webpage, 'uploader', fatal=False, flags=re.DOTALL)
+        twitter_title  = self._html_search_meta('twitter:title', webpage,
+            'twitter title')
+        uploader = re.sub('\'s post on Vine', '', twitter_title)
 
         return {
             'id': video_id,