mirror of
https://github.com/l1ving/youtube-dl
synced 2025-01-23 23:15:35 +08:00
[extractor/youtube] Fix likes/dislikes extraction
This commit is contained in:
parent
a9efdf3d4a
commit
18bf4600d3
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user