Browse Source

[vine] Fix uploader extraction

totalwebcasting
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
78b373975d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/vine.py

+ 3
- 2
youtube_dl/extractor/vine.py View 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,


Loading…
Cancel
Save