diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-02-23 12:08:30 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-02-23 12:08:30 +0100 |
commit | 78b373975d21f9573c1b32c53aa3c05ab4a490f2 (patch) | |
tree | 3aaab4143edf711c55dfc8cf7e1422dc2cbc5c96 /youtube_dl | |
parent | 2fcc873c4cdfda024ee5fec2be38512e22cb1963 (diff) |
[vine] Fix uploader extraction
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/vine.py | 5 |
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, |