1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-23 23:32:59 +08:00

[extractor/youtube] Fix likes/dislikes extraction

This commit is contained in:
Paul Fertser 2017-11-19 20:37:29 +03:00
parent a9efdf3d4a
commit 18bf4600d3

View File

@ -1778,7 +1778,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
def _extract_count(count_name):
return str_to_int(self._search_regex(
r'-%s-button[^>]+><span[^>]+class="yt-uix-button-content"[^>]*>([\d,]+)</span>'
r'"%s this video along with ([\d,]+) other'
% re.escape(count_name),
video_webpage, count_name, default=None))