diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-17 20:27:38 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-17 20:27:38 +0600 |
commit | 028a33d7f2a0bc028f533530d2722b57b31dabdc (patch) | |
tree | f6c5d445f0ef4d9edc22b78fc194a9ab39fe856c | |
parent | 447053668fbed993f6f4fd2e06d9282ea30224bb (diff) |
[lifenews] Fix extraction
-rw-r--r-- | youtube_dl/extractor/lifenews.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/lifenews.py b/youtube_dl/extractor/lifenews.py index 42cb6e35f..373122c93 100644 --- a/youtube_dl/extractor/lifenews.py +++ b/youtube_dl/extractor/lifenews.py @@ -82,10 +82,11 @@ class LifeNewsIE(InfoExtractor): view_count = self._html_search_regex( 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\'>\s*(\d+)\s*</span>', webpage, 'comment count', fatal=False) + r'=\'commentCount\'[^>]*>\s*(\d+)\s*<', + webpage, 'comment count', fatal=False) upload_date = self._html_search_regex( - r'<time datetime=\'([^\']+)\'>', webpage, 'upload date', fatal=False) + r'<time[^>]*datetime=\'([^\']+)\'', webpage, 'upload date', fatal=False) if upload_date is not None: upload_date = unified_strdate(upload_date) |