Browse Source

[lifenews] Fix extraction

totalwebcasting
Sergey M․ 10 years ago
parent
commit
028a33d7f2
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      youtube_dl/extractor/lifenews.py

+ 3
- 2
youtube_dl/extractor/lifenews.py View File

@ -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)


Loading…
Cancel
Save