Browse Source

[vidme] extract the uploader

totalwebcasting
remitamine 9 years ago
parent
commit
09b6468d30
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/vidme.py

+ 2
- 0
youtube_dl/extractor/vidme.py View File

@ -50,6 +50,7 @@ class VidmeIE(InfoExtractor):
like_count = str_to_int(self._html_search_regex( like_count = str_to_int(self._html_search_regex(
r'class="score js-video-vote-score"[^>]+data-score="([\d,\.\s]+)">', r'class="score js-video-vote-score"[^>]+data-score="([\d,\.\s]+)">',
webpage, 'like count', fatal=False)) webpage, 'like count', fatal=False))
uploader = self._html_search_regex('class="video_author_username">([^<]+)', webpage, 'uploader', fatal=False)
return { return {
'id': video_id, 'id': video_id,
@ -63,4 +64,5 @@ class VidmeIE(InfoExtractor):
'duration': duration, 'duration': duration,
'view_count': view_count, 'view_count': view_count,
'like_count': like_count, 'like_count': like_count,
'uploader': uploader,
} }

Loading…
Cancel
Save