aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/pornhub.py
diff options
context:
space:
mode:
authorJChris246 <43832407+JChris246@users.noreply.github.com>2020-11-28 15:32:13 -0400
committerGitHub <noreply@github.com>2020-11-29 02:32:13 +0700
commitf04cfe24e0554ca7e08db94ef138d44d22493af0 (patch)
tree26b49796caddf6e03b7d4ef36aba7440792c4647 /youtube_dl/extractor/pornhub.py
parent20c50c65566be31607e59d7ca2467c664a29c843 (diff)
[pornhub] Fix like and dislike count extraction (closes #27227) (#27234)
Diffstat (limited to 'youtube_dl/extractor/pornhub.py')
-rw-r--r--youtube_dl/extractor/pornhub.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py
index 529f3f711..a50b6260c 100644
--- a/youtube_dl/extractor/pornhub.py
+++ b/youtube_dl/extractor/pornhub.py
@@ -346,9 +346,9 @@ class PornHubIE(PornHubBaseIE):
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')