aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-02-23 12:08:30 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-02-23 12:08:30 +0100
commit78b373975d21f9573c1b32c53aa3c05ab4a490f2 (patch)
tree3aaab4143edf711c55dfc8cf7e1422dc2cbc5c96 /youtube_dl/extractor
parent2fcc873c4cdfda024ee5fec2be38512e22cb1963 (diff)
[vine] Fix uploader extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/vine.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vine.py b/youtube_dl/extractor/vine.py
index e14ff91d4..a919129a6 100644
--- a/youtube_dl/extractor/vine.py
+++ b/youtube_dl/extractor/vine.py
@@ -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,