mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 14:37:06 +01:00
Merge pull request #6421 from remitamine/vidme
[vidme] extract the uploader
This commit is contained in:
commit
8abb86fec4
@ -50,6 +50,7 @@ def _real_extract(self, url):
|
||||
like_count = str_to_int(self._html_search_regex(
|
||||
r'class="score js-video-vote-score"[^>]+data-score="([\d,\.\s]+)">',
|
||||
webpage, 'like count', fatal=False))
|
||||
uploader = self._html_search_regex('class="video_author_username">([^<]+)', webpage, 'uploader', fatal=False)
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
@ -63,4 +64,5 @@ def _real_extract(self, url):
|
||||
'duration': duration,
|
||||
'view_count': view_count,
|
||||
'like_count': like_count,
|
||||
'uploader': uploader,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user