]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[pornhub] Fix view count extraction (#26621) (refs #26614)
authorJChris246 <43832407+JChris246@users.noreply.github.com>
Fri, 18 Sep 2020 22:59:19 +0000 (18:59 -0400)
committerGitHub <noreply@github.com>
Fri, 18 Sep 2020 22:59:19 +0000 (05:59 +0700)
youtube_dl/extractor/pornhub.py

index 3567a32839eef2f75123a3f1b939038cf3eaf678..c64c870dc8edbf33121b592d7e424399132503eb 100644 (file)
@@ -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(