Skip to content

Commit

Permalink
[pornhub] Fix like and dislike count extraction (closes ytdl-org#27227)…
Browse files Browse the repository at this point in the history
  • Loading branch information
JChris246 authored and ThirumalaiK committed Jan 28, 2021
1 parent e687451 commit fa5f4f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/pornhub.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ def add_video_url(video_url):
view_count = self._extract_count(
r'<span class="count">([\d,\.]+)</span> [Vv]iews', webpage, 'view')
like_count = self._extract_count(
r'<span class="votesUp">([\d,\.]+)</span>', webpage, 'like')
r'<span[^>]+class="votesUp"[^>]*>([\d,\.]+)</span>', webpage, 'like')
dislike_count = self._extract_count(
r'<span class="votesDown">([\d,\.]+)</span>', webpage, 'dislike')
r'<span[^>]+class="votesDown"[^>]*>([\d,\.]+)</span>', webpage, 'dislike')
comment_count = self._extract_count(
r'All Comments\s*<span>\(([\d,.]+)\)', webpage, 'comment')

Expand Down

0 comments on commit fa5f4f6

Please sign in to comment.