[youtube] Updated extraction of 'like_count' value

This commit is contained in:
Joel Potts 2020-09-15 17:33:44 +02:00
parent e8c5d40bc8
commit a6c666d06c

View file

@ -2393,7 +2393,7 @@ def extract_meta(field):
def _extract_count(count_name):
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),
video_webpage, count_name, default=None))