aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vidme.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-03-09 03:01:28 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-03-09 03:01:28 +0100
commitdcca5819675df1e9d9a1caf00af0f98bb2ce511c (patch)
tree47523d0851107978072ca6dd5c982dafe7abff47 /youtube_dl/extractor/vidme.py
parentd475b3384cd372d89c35b9b1c26499f1e9cc1915 (diff)
parentdd7831fe94a0fb8270e7fa3699677c7476a5cd83 (diff)
Merge remote-tracking branch 'origin/master'
Conflicts: youtube_dl/YoutubeDL.py
Diffstat (limited to 'youtube_dl/extractor/vidme.py')
-rw-r--r--youtube_dl/extractor/vidme.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/youtube_dl/extractor/vidme.py b/youtube_dl/extractor/vidme.py
index 339c3d897..bd953fb4c 100644
--- a/youtube_dl/extractor/vidme.py
+++ b/youtube_dl/extractor/vidme.py
@@ -41,13 +41,10 @@ class VidmeIE(InfoExtractor):
duration = float_or_none(self._html_search_regex(
r'data-duration="([^"]+)"', webpage, 'duration', fatal=False))
view_count = str_to_int(self._html_search_regex(
- r'<span class="video_views">\s*([\d,\.]+)\s*plays?', webpage, 'view count', fatal=False))
+ r'<(?:li|span) class="video_views">\s*([\d,\.]+)\s*plays?', webpage, 'view count', fatal=False))
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))
- comment_count = str_to_int(self._html_search_regex(
- r'class="js-comment-count"[^>]+data-count="([\d,\.\s]+)">',
- webpage, 'comment count', fatal=False))
return {
'id': video_id,
@@ -61,5 +58,4 @@ class VidmeIE(InfoExtractor):
'duration': duration,
'view_count': view_count,
'like_count': like_count,
- 'comment_count': comment_count,
}