commit bd6fb007de2323065bface4467539b509fbdb062
parent b69b2ff7366cee97202eb333bf06329bfb2e974e
Author: Sergey M․ <dstftw@gmail.com>
Date: Sat, 13 Aug 2016 14:22:47 +0700
[24video] Fix comment count extraction
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/twentyfourvideo.py b/youtube_dl/extractor/twentyfourvideo.py
@@ -64,7 +64,7 @@ class TwentyFourVideoIE(InfoExtractor):
r'<span class="video-views">(\d+) просмотр',
webpage, 'view count', fatal=False))
comment_count = int_or_none(self._html_search_regex(
- r'<div class="comments-title" id="comments-count">(\d+) комментари',
+ r'<a[^>]+href="#tab-comments"[^>]*>(\d+) комментари',
webpage, 'comment count', fatal=False))
# Sets some cookies