Skip to content

Commit

Permalink
[youtube] Updated extraction of 'like_count' value
Browse files Browse the repository at this point in the history
  • Loading branch information
jpotts-redpoints committed Sep 23, 2020
1 parent e8c5d40 commit a6c666d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit a6c666d

Please sign in to comment.