0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[24video] Fix comment count extraction

This commit is contained in:
Sergey M․ 2016-08-13 14:22:47 +07:00
parent b69b2ff736
commit bd6fb007de
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -64,7 +64,7 @@ def _real_extract(self, url):
r'<span class="video-views">(\d+) просмотр', r'<span class="video-views">(\d+) просмотр',
webpage, 'view count', fatal=False)) webpage, 'view count', fatal=False))
comment_count = int_or_none(self._html_search_regex( 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)) webpage, 'comment count', fatal=False))
# Sets some cookies # Sets some cookies