aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/lifenews.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-05-04 01:11:23 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-05-04 01:11:23 +0800
commit1748d67aea66b6d63bc203ada1036110e7fd2402 (patch)
tree8c0fef92e1c90d2c930010498040b382fdb93d06 /youtube_dl/extractor/lifenews.py
parent5477ca82395545e577afb269b910336cd98de5b5 (diff)
[lifenews] Fix view count and comment count
Diffstat (limited to 'youtube_dl/extractor/lifenews.py')
-rw-r--r--youtube_dl/extractor/lifenews.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/lifenews.py b/youtube_dl/extractor/lifenews.py
index 1dfe7f77f..3c00ed333 100644
--- a/youtube_dl/extractor/lifenews.py
+++ b/youtube_dl/extractor/lifenews.py
@@ -47,9 +47,9 @@ class LifeNewsIE(InfoExtractor):
description = self._og_search_description(webpage)
view_count = self._html_search_regex(
- r'<div class=\'views\'>(\d+)</div>', webpage, 'view count', fatal=False)
+ r'<div class=\'views\'>\s*(\d+)\s*</div>', webpage, 'view count', fatal=False)
comment_count = self._html_search_regex(
- r'<div class=\'comments\'>\s*<span class=\'counter\'>(\d+)</span>', webpage, 'comment count', fatal=False)
+ r'<div class=\'comments\'>\s*<span class=\'counter\'>\s*(\d+)\s*</span>', webpage, 'comment count', fatal=False)
upload_date = self._html_search_regex(
r'<time datetime=\'([^\']+)\'>', webpage, 'upload date', fatal=False)