From ae9fbf773e78caf0801e072a8f1fd2092e7c1163 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=AD=E4=B9=9D=E9=BC=8E?= <109224573@qq.com>
Date: Wed, 9 Dec 2020 12:01:49 +0800
Subject: [PATCH] [pornhub] Fix like and dislike count extraction
---
youtube_dl/extractor/pornhub.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py
index 9ad92a8ecf3..8bdd7c22460 100644
--- a/youtube_dl/extractor/pornhub.py
+++ b/youtube_dl/extractor/pornhub.py
@@ -354,9 +354,9 @@ def add_video_url(video_url):
view_count = self._extract_count(
r'([\d,\.]+) [Vv]iews', webpage, 'view')
like_count = self._extract_count(
- r']+class="votesUp"[^>]*>([\d,\.]+)', webpage, 'like')
+ r'', webpage, 'like')
dislike_count = self._extract_count(
- r']+class="votesDown"[^>]*>([\d,\.]+)', webpage, 'dislike')
+ r'', webpage, 'dislike')
comment_count = self._extract_count(
r'All Comments\s*\(([\d,.]+)\)', webpage, 'comment')