mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-09-11 20:12:41 +02:00
[youtube] Updated extraction of 'like_count' value
This commit is contained in:
parent
e8c5d40bc8
commit
a6c666d06c
@ -2393,7 +2393,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
|
|
||||||
def _extract_count(count_name):
|
def _extract_count(count_name):
|
||||||
return str_to_int(self._search_regex(
|
return str_to_int(self._search_regex(
|
||||||
r'-%s-button[^>]+><span[^>]+class="yt-uix-button-content"[^>]*>([\d,]+)</span>'
|
r'"accessibilityData":\{"label":"([\d,\w]+) %ss"\}'
|
||||||
% re.escape(count_name),
|
% re.escape(count_name),
|
||||||
video_webpage, count_name, default=None))
|
video_webpage, count_name, default=None))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user