Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libre
youtube-dl
Commits
540b9f51
Unverified
Commit
540b9f51
authored
Sep 18, 2020
by
JChris246
Committed by
GitHub
Sep 19, 2020
Browse files
[pornhub] Fix view count extraction (#26621) (refs #26614)
parent
6e65a2a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
youtube_dl/extractor/pornhub.py
View file @
540b9f51
...
...
@@ -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
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment