projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e65a2a
)
[pornhub] Fix view count extraction (#26621) (refs #26614)
author
JChris246
<43832407+JChris246@users.noreply.github.com>
Fri, 18 Sep 2020 22:59:19 +0000
(18:59 -0400)
committer
GitHub
<noreply@github.com>
Fri, 18 Sep 2020 22:59:19 +0000
(
05:59
+0700)
youtube_dl/extractor/pornhub.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pornhub.py
b/youtube_dl/extractor/pornhub.py
index 3567a32839eef2f75123a3f1b939038cf3eaf678..c64c870dc8edbf33121b592d7e424399132503eb 100644
(file)
--- 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>
v
iews', 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(