1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[vine] Fix uploader extraction

This commit is contained in:
Jaime Marquínez Ferrándiz 2014-02-23 12:08:30 +01:00
parent 2fcc873c4c
commit 78b373975d

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,