mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-19 09:25:43 +00:00
[vine] Fix uploader extraction
This commit is contained in:
parent
2fcc873c4c
commit
78b373975d
@ -30,8 +30,9 @@ def _real_extract(self, url):
|
|||||||
video_url = self._html_search_meta('twitter:player:stream', webpage,
|
video_url = self._html_search_meta('twitter:player:stream', webpage,
|
||||||
'video URL')
|
'video URL')
|
||||||
|
|
||||||
uploader = self._html_search_regex(r'<p class="username">(.*?)</p>',
|
twitter_title = self._html_search_meta('twitter:title', webpage,
|
||||||
webpage, 'uploader', fatal=False, flags=re.DOTALL)
|
'twitter title')
|
||||||
|
uploader = re.sub('\'s post on Vine', '', twitter_title)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user