From 18bf4600d3d739799e565a80f5131e5c160a73cc Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Sun, 19 Nov 2017 20:37:29 +0300 Subject: [PATCH] [extractor/youtube] Fix likes/dislikes extraction --- youtube_dl/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 9943dddc1..6a36a7269 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1778,7 +1778,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): def _extract_count(count_name): return str_to_int(self._search_regex( - r'-%s-button[^>]+>]+class="yt-uix-button-content"[^>]*>([\d,]+)' + r'"%s this video along with ([\d,]+) other' % re.escape(count_name), video_webpage, count_name, default=None))