Browse Source

[lifenews] Fix view count and comment count

master
Yen Chi Hsuan 9 years ago
parent
commit
1748d67aea
1 changed files with 2 additions and 2 deletions
  1. 4
      youtube_dl/extractor/lifenews.py

4
youtube_dl/extractor/lifenews.py

@ -47,9 +47,9 @@ class LifeNewsIE(InfoExtractor):
description = self._og_search_description(webpage) description = self._og_search_description(webpage)
view_count = self._html_search_regex( 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( 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( upload_date = self._html_search_regex(
r'<time datetime=\'([^\']+)\'>', webpage, 'upload date', fatal=False) r'<time datetime=\'([^\']+)\'>', webpage, 'upload date', fatal=False)

Loading…
Cancel
Save