projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4470536
)
[lifenews] Fix extraction
author
Sergey M․
<dstftw@gmail.com>
Wed, 17 Jun 2015 14:27:38 +0000
(20:27 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 17 Jun 2015 14:27:38 +0000
(20:27 +0600)
youtube_dl/extractor/lifenews.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/lifenews.py
b/youtube_dl/extractor/lifenews.py
index 42cb6e35f821256e90c8eef4f176812e3e0f42d0..373122c93712fb88d490883267f25d398e0f9428 100644
(file)
--- 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(
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(
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)
if upload_date is not None:
upload_date = unified_strdate(upload_date)