commit: 540b9f5164d50eb99d9c988ece6eb6775ccaf94a
parent 6e65a2a67e075ae8f3e4fe03c732d7772d36f5e1
Author: JChris246 <43832407+JChris246@users.noreply.github.com>
Date: Fri, 18 Sep 2020 18:59:19 -0400
[pornhub] Fix view count extraction (#26621) (refs #26614)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py
@@ -341,7 +341,7 @@ class PornHubIE(PornHubBaseIE):
webpage, 'uploader', fatal=False)
view_count = self._extract_count(
- r'<span class="count">([\d,\.]+)</span> views', webpage, 'view')
+ r'<span class="count">([\d,\.]+)</span> [Vv]iews', webpage, 'view')
like_count = self._extract_count(
r'<span class="votesUp">([\d,\.]+)</span>', webpage, 'like')
dislike_count = self._extract_count(